home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Technology Seed / Jan. '98 ATS.toast / QuickTime™ 3.0b11 / QTPublicInterfaces / CIncludes / QuickTimeComponents.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-12  |  140.1 KB  |  3,655 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        QuickTimeComponents.h
  3.  
  4.      Contains:    QuickTime interfaces
  5.  
  6.      Version:    Technology:    
  7.                  Release:    QuickTime 3.0 Beta
  8.  
  9.      Copyright:    © 1990-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __QUICKTIMECOMPONENTS__
  19. #define __QUICKTIMECOMPONENTS__
  20.  
  21. #ifndef __COMPONENTS__
  22. #include <Components.h>
  23. #endif
  24. #ifndef __IMAGECOMPRESSION__
  25. #include <ImageCompression.h>
  26. #endif
  27. #ifndef __MOVIES__
  28. #include <Movies.h>
  29. #endif
  30. #ifndef __QUICKDRAW__
  31. #include <Quickdraw.h>
  32. #endif
  33. #ifndef __VIDEO__
  34. #include <Video.h>
  35. #endif
  36. #ifndef __MACMEMORY__
  37. #include <MacMemory.h>
  38. #endif
  39. #ifndef __SOUND__
  40. #include <Sound.h>
  41. #endif
  42. #ifndef __QUICKTIMEMUSIC__
  43. #include <QuickTimeMusic.h>
  44. #endif
  45.  
  46.  
  47.  
  48. #if PRAGMA_ONCE
  49. #pragma once
  50. #endif
  51.  
  52. #ifdef __cplusplus
  53. extern "C" {
  54. #endif
  55.  
  56. #if PRAGMA_IMPORT
  57. #pragma import on
  58. #endif
  59.  
  60. #if PRAGMA_STRUCT_ALIGN
  61.     #pragma options align=mac68k
  62. #elif PRAGMA_STRUCT_PACKPUSH
  63.     #pragma pack(push, 2)
  64. #elif PRAGMA_STRUCT_PACK
  65.     #pragma pack(2)
  66. #endif
  67.  
  68.  
  69. enum {
  70.     clockComponentType            = FOUR_CHAR_CODE('clok'),
  71.     systemTickClock                = FOUR_CHAR_CODE('tick'),        /* subtype: 60ths since boot        */
  72.     systemSecondClock            = FOUR_CHAR_CODE('seco'),        /* subtype: seconds since 1904        */
  73.     systemMillisecondClock        = FOUR_CHAR_CODE('mill'),        /* subtype: 1000ths since boot        */
  74.     systemMicrosecondClock        = FOUR_CHAR_CODE('micr')        /* subtype: 1000000ths since boot    */
  75. };
  76.  
  77.  
  78. enum {
  79.     kClockRateIsLinear            = 1,
  80.     kClockImplementsCallBacks    = 2,
  81.     kClockCanHandleIntermittentSound = 4                        /* sound clocks only */
  82. };
  83.  
  84. #if OLDROUTINENAMES
  85. #define GetClockTime(aClock, out) ClockGetTime(aClock, out)
  86. #endif
  87. /** These are Clock procedures **/
  88. EXTERN_API( ComponentResult )
  89. ClockGetTime                    (ComponentInstance         aClock,
  90.                                  TimeRecord *            out)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
  91.  
  92.  
  93. EXTERN_API( QTCallBack )
  94. ClockNewCallBack                (ComponentInstance         aClock,
  95.                                  TimeBase                 tb,
  96.                                  short                     callBackType)                        FIVEWORDINLINE(0x2F3C, 0x0006, 0x0002, 0x7000, 0xA82A);
  97.  
  98. EXTERN_API( ComponentResult )
  99. ClockDisposeCallBack            (ComponentInstance         aClock,
  100.                                  QTCallBack             cb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
  101.  
  102. EXTERN_API( ComponentResult )
  103. ClockCallMeWhen                    (ComponentInstance         aClock,
  104.                                  QTCallBack             cb,
  105.                                  long                     param1,
  106.                                  long                     param2,
  107.                                  long                     param3)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0004, 0x7000, 0xA82A);
  108.  
  109. EXTERN_API( ComponentResult )
  110. ClockCancelCallBack                (ComponentInstance         aClock,
  111.                                  QTCallBack             cb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0005, 0x7000, 0xA82A);
  112.  
  113. EXTERN_API( ComponentResult )
  114. ClockRateChanged                (ComponentInstance         aClock,
  115.                                  QTCallBack             cb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0006, 0x7000, 0xA82A);
  116.  
  117. EXTERN_API( ComponentResult )
  118. ClockTimeChanged                (ComponentInstance         aClock,
  119.                                  QTCallBack             cb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  120.  
  121. EXTERN_API( ComponentResult )
  122. ClockSetTimeBase                (ComponentInstance         aClock,
  123.                                  TimeBase                 tb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0008, 0x7000, 0xA82A);
  124.  
  125. EXTERN_API( ComponentResult )
  126. ClockStartStopChanged            (ComponentInstance         aClock,
  127.                                  QTCallBack             cb,
  128.                                  Boolean                 startChanged,
  129.                                  Boolean                 stopChanged)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0009, 0x7000, 0xA82A);
  130.  
  131. EXTERN_API( ComponentResult )
  132. ClockGetRate                    (ComponentInstance         aClock,
  133.                                  Fixed *                rate)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
  134.  
  135.  
  136.  
  137.  
  138.  
  139. enum {
  140.     StandardCompressionType        = FOUR_CHAR_CODE('scdi'),
  141.     StandardCompressionSubType    = FOUR_CHAR_CODE('imag'),
  142.     StandardCompressionSubTypeSound = FOUR_CHAR_CODE('soun')
  143. };
  144.  
  145.  
  146. typedef CALLBACK_API( Boolean , SCModalFilterProcPtr )(DialogPtr theDialog, EventRecord *theEvent, short *itemHit, long refcon);
  147. typedef CALLBACK_API( short , SCModalHookProcPtr )(DialogPtr theDialog, short itemHit, void *params, long refcon);
  148. typedef STACK_UPP_TYPE(SCModalFilterProcPtr)                     SCModalFilterUPP;
  149. typedef STACK_UPP_TYPE(SCModalHookProcPtr)                         SCModalHookUPP;
  150. /*    Preference flags.*/
  151.  
  152. enum {
  153.     scListEveryCodec            = 1L << 1,
  154.     scAllowZeroFrameRate        = 1L << 2,
  155.     scAllowZeroKeyFrameRate        = 1L << 3,
  156.     scShowBestDepth                = 1L << 4,
  157.     scUseMovableModal            = 1L << 5,
  158.     scDisableFrameRateItem        = 1L << 6
  159. };
  160.  
  161.  
  162. /*    Possible test flags for setting test image.*/
  163.  
  164. enum {
  165.     scPreferCropping            = 1 << 0,
  166.     scPreferScaling                = 1 << 1,
  167.     scPreferScalingAndCropping    = scPreferScaling | scPreferCropping,
  168.     scDontDetermineSettingsFromTestImage = 1 << 2
  169. };
  170.  
  171.  
  172. /*    Dimensions of the image preview box.*/
  173.  
  174. enum {
  175.     scTestImageWidth            = 80,
  176.     scTestImageHeight            = 80
  177. };
  178.  
  179. /*    Possible items returned by hookProc.*/
  180.  
  181. enum {
  182.     scOKItem                    = 1,
  183.     scCancelItem                = 2,
  184.     scCustomItem                = 3
  185. };
  186.  
  187. /*    Result returned when user cancelled.*/
  188.  
  189. enum {
  190.     scUserCancelled                = 1
  191. };
  192.  
  193.  
  194.  
  195. /* Component selectors*/
  196.  
  197. enum {
  198.     scPositionRect                = 2,
  199.     scPositionDialog            = 3,
  200.     scSetTestImagePictHandle    = 4,
  201.     scSetTestImagePictFile        = 5,
  202.     scSetTestImagePixMap        = 6,
  203.     scGetBestDeviceRect            = 7,
  204.     scRequestImageSettings        = 10,
  205.     scCompressImage                = 11,
  206.     scCompressPicture            = 12,
  207.     scCompressPictureFile        = 13,
  208.     scRequestSequenceSettings    = 14,
  209.     scCompressSequenceBegin        = 15,
  210.     scCompressSequenceFrame        = 16,
  211.     scCompressSequenceEnd        = 17,
  212.     scDefaultPictHandleSettings    = 18,
  213.     scDefaultPictFileSettings    = 19,
  214.     scDefaultPixMapSettings        = 20,
  215.     scGetInfo                    = 21,
  216.     scSetInfo                    = 22,
  217.     scNewGWorld                    = 23
  218. };
  219.  
  220. /*    Get/SetInfo structures.*/
  221.  
  222.  
  223. struct SCSpatialSettings {
  224.     CodecType                         codecType;
  225.     CodecComponent                     codec;
  226.     short                             depth;
  227.     CodecQ                             spatialQuality;
  228. };
  229. typedef struct SCSpatialSettings        SCSpatialSettings;
  230.  
  231. struct SCTemporalSettings {
  232.     CodecQ                             temporalQuality;
  233.     Fixed                             frameRate;
  234.     long                             keyFrameRate;
  235. };
  236. typedef struct SCTemporalSettings        SCTemporalSettings;
  237.  
  238. struct SCDataRateSettings {
  239.     long                             dataRate;
  240.     long                             frameDuration;
  241.     CodecQ                             minSpatialQuality;
  242.     CodecQ                             minTemporalQuality;
  243. };
  244. typedef struct SCDataRateSettings        SCDataRateSettings;
  245.  
  246. struct SCExtendedProcs {
  247.     SCModalFilterUPP                 filterProc;
  248.     SCModalHookUPP                     hookProc;
  249.     long                             refcon;
  250.     Str31                             customName;
  251. };
  252. typedef struct SCExtendedProcs            SCExtendedProcs;
  253. /*    Get/SetInfo selectors*/
  254.  
  255. enum {
  256.     scSpatialSettingsType        = FOUR_CHAR_CODE('sptl'),        /* pointer to SCSpatialSettings struct*/
  257.     scTemporalSettingsType        = FOUR_CHAR_CODE('tprl'),        /* pointer to SCTemporalSettings struct*/
  258.     scDataRateSettingsType        = FOUR_CHAR_CODE('drat'),        /* pointer to SCDataRateSettings struct*/
  259.     scColorTableType            = FOUR_CHAR_CODE('clut'),        /* pointer to CTabHandle*/
  260.     scProgressProcType            = FOUR_CHAR_CODE('prog'),        /* pointer to ProgressRecord struct*/
  261.     scExtendedProcsType            = FOUR_CHAR_CODE('xprc'),        /* pointer to SCExtendedProcs struct*/
  262.     scPreferenceFlagsType        = FOUR_CHAR_CODE('pref'),        /* pointer to long*/
  263.     scSettingsStateType            = FOUR_CHAR_CODE('ssta'),        /* pointer to Handle*/
  264.     scSequenceIDType            = FOUR_CHAR_CODE('sequ'),        /* pointer to ImageSequence*/
  265.     scWindowPositionType        = FOUR_CHAR_CODE('wndw'),        /* pointer to Point*/
  266.     scCodecFlagsType            = FOUR_CHAR_CODE('cflg'),        /* pointer to CodecFlags*/
  267.     scCodecSettingsType            = FOUR_CHAR_CODE('cdec'),        /* pointer to Handle*/
  268.     scForceKeyValueType            = FOUR_CHAR_CODE('ksim'),        /* pointer to long*/
  269.     scSoundSampleRateType        = FOUR_CHAR_CODE('ssrt'),        /* pointer to UnsignedFixed*/
  270.     scSoundSampleSizeType        = FOUR_CHAR_CODE('ssss'),        /* pointer to short*/
  271.     scSoundChannelCountType        = FOUR_CHAR_CODE('sscc'),        /* pointer to short*/
  272.     scSoundCompressionType        = FOUR_CHAR_CODE('ssct'),        /* pointer to OSType*/
  273.     scCompressionListType        = FOUR_CHAR_CODE('ctyl')        /* pointer to OSType Handle*/
  274. };
  275.  
  276. /*    scTypeNotFoundErr returned by Get/SetInfo when type cannot be found.*/
  277.  
  278.  
  279.  
  280. struct SCParams {
  281.     long                             flags;
  282.     CodecType                         theCodecType;
  283.     CodecComponent                     theCodec;
  284.     CodecQ                             spatialQuality;
  285.     CodecQ                             temporalQuality;
  286.     short                             depth;
  287.     Fixed                             frameRate;
  288.     long                             keyFrameRate;
  289.     long                             reserved1;
  290.     long                             reserved2;
  291. };
  292. typedef struct SCParams                    SCParams;
  293.  
  294. enum {
  295.     scGetCompression            = 1,
  296.     scShowMotionSettings        = 1L << 0,
  297.     scSettingsChangedItem        = -1
  298. };
  299.  
  300.  
  301. enum {
  302.     scCompressFlagIgnoreIdenticalFrames = 1
  303. };
  304.  
  305. /* QTAtomTypes for atoms found in settings atom containers*/
  306.  
  307. enum {
  308.     kQTSettingsVideo            = FOUR_CHAR_CODE('vide'),        /* Container for video/image compression related atoms (Get/SetInfo selectors)*/
  309.     kQTSettingsSound            = FOUR_CHAR_CODE('soun')        /* Container for sound compression related atoms (Get/SetInfo selectors)*/
  310. };
  311.  
  312.  
  313. #define SCGetCompression(ci, params, where) SCGetCompressionExtended(ci,params,where,0,0,0,0)
  314. /** These are Progress procedures **/
  315. EXTERN_API( ComponentResult )
  316. SCGetCompressionExtended        (ComponentInstance         ci,
  317.                                  SCParams *                params,
  318.                                  Point                     where,
  319.                                  SCModalFilterUPP         filterProc,
  320.                                  SCModalHookUPP         hookProc,
  321.                                  long                     refcon,
  322.                                  StringPtr                 customName)                            FIVEWORDINLINE(0x2F3C, 0x0018, 0x0001, 0x7000, 0xA82A);
  323.  
  324. EXTERN_API( ComponentResult )
  325. SCPositionRect                    (ComponentInstance         ci,
  326.                                  Rect *                    rp,
  327.                                  Point *                where)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  328.  
  329. EXTERN_API( ComponentResult )
  330. SCPositionDialog                (ComponentInstance         ci,
  331.                                  short                     id,
  332.                                  Point *                where)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x0003, 0x7000, 0xA82A);
  333.  
  334. EXTERN_API( ComponentResult )
  335. SCSetTestImagePictHandle        (ComponentInstance         ci,
  336.                                  PicHandle                 testPict,
  337.                                  Rect *                    testRect,
  338.                                  short                     testFlags)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0004, 0x7000, 0xA82A);
  339.  
  340. EXTERN_API( ComponentResult )
  341. SCSetTestImagePictFile            (ComponentInstance         ci,
  342.                                  short                     testFileRef,
  343.                                  Rect *                    testRect,
  344.                                  short                     testFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0005, 0x7000, 0xA82A);
  345.  
  346. EXTERN_API( ComponentResult )
  347. SCSetTestImagePixMap            (ComponentInstance         ci,
  348.                                  PixMapHandle             testPixMap,
  349.                                  Rect *                    testRect,
  350.                                  short                     testFlags)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0006, 0x7000, 0xA82A);
  351.  
  352. EXTERN_API( ComponentResult )
  353. SCGetBestDeviceRect                (ComponentInstance         ci,
  354.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  355.  
  356.  
  357. EXTERN_API( ComponentResult )
  358. SCRequestImageSettings            (ComponentInstance         ci)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x000A, 0x7000, 0xA82A);
  359.  
  360. EXTERN_API( ComponentResult )
  361. SCCompressImage                    (ComponentInstance         ci,
  362.                                  PixMapHandle             src,
  363.                                  const Rect *            srcRect,
  364.                                  ImageDescriptionHandle * desc,
  365.                                  Handle *                data)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x000B, 0x7000, 0xA82A);
  366.  
  367. EXTERN_API( ComponentResult )
  368. SCCompressPicture                (ComponentInstance         ci,
  369.                                  PicHandle                 srcPicture,
  370.                                  PicHandle                 dstPicture)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x000C, 0x7000, 0xA82A);
  371.  
  372. EXTERN_API( ComponentResult )
  373. SCCompressPictureFile            (ComponentInstance         ci,
  374.                                  short                     srcRefNum,
  375.                                  short                     dstRefNum)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
  376.  
  377. EXTERN_API( ComponentResult )
  378. SCRequestSequenceSettings        (ComponentInstance         ci)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x000E, 0x7000, 0xA82A);
  379.  
  380. EXTERN_API( ComponentResult )
  381. SCCompressSequenceBegin            (ComponentInstance         ci,
  382.                                  PixMapHandle             src,
  383.                                  const Rect *            srcRect,
  384.                                  ImageDescriptionHandle * desc)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x000F, 0x7000, 0xA82A);
  385.  
  386. EXTERN_API( ComponentResult )
  387. SCCompressSequenceFrame            (ComponentInstance         ci,
  388.                                  PixMapHandle             src,
  389.                                  const Rect *            srcRect,
  390.                                  Handle *                data,
  391.                                  long *                    dataSize,
  392.                                  short *                notSyncFlag)                        FIVEWORDINLINE(0x2F3C, 0x0014, 0x0010, 0x7000, 0xA82A);
  393.  
  394. EXTERN_API( ComponentResult )
  395. SCCompressSequenceEnd            (ComponentInstance         ci)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0011, 0x7000, 0xA82A);
  396.  
  397. EXTERN_API( ComponentResult )
  398. SCDefaultPictHandleSettings        (ComponentInstance         ci,
  399.                                  PicHandle                 srcPicture,
  400.                                  short                     motion)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x0012, 0x7000, 0xA82A);
  401.  
  402. EXTERN_API( ComponentResult )
  403. SCDefaultPictFileSettings        (ComponentInstance         ci,
  404.                                  short                     srcRef,
  405.                                  short                     motion)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0013, 0x7000, 0xA82A);
  406.  
  407. EXTERN_API( ComponentResult )
  408. SCDefaultPixMapSettings            (ComponentInstance         ci,
  409.                                  PixMapHandle             src,
  410.                                  short                     motion)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x0014, 0x7000, 0xA82A);
  411.  
  412. EXTERN_API( ComponentResult )
  413. SCGetInfo                        (ComponentInstance         ci,
  414.                                  OSType                 infoType,
  415.                                  void *                    info)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0015, 0x7000, 0xA82A);
  416.  
  417. EXTERN_API( ComponentResult )
  418. SCSetInfo                        (ComponentInstance         ci,
  419.                                  OSType                 infoType,
  420.                                  void *                    info)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0016, 0x7000, 0xA82A);
  421.  
  422. EXTERN_API( ComponentResult )
  423. SCNewGWorld                        (ComponentInstance         ci,
  424.                                  GWorldPtr *            gwp,
  425.                                  Rect *                    rp,
  426.                                  GWorldFlags             flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0017, 0x7000, 0xA82A);
  427.  
  428. EXTERN_API( ComponentResult )
  429. SCSetCompressFlags                (ComponentInstance         ci,
  430.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0018, 0x7000, 0xA82A);
  431.  
  432. EXTERN_API( ComponentResult )
  433. SCGetCompressFlags                (ComponentInstance         ci,
  434.                                  long *                    flags)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
  435.  
  436. EXTERN_API( ComponentResult )
  437. SCGetSettingsAsText                (ComponentInstance         ci,
  438.                                  Handle *                text)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
  439.  
  440. EXTERN_API( ComponentResult )
  441. SCGetSettingsAsAtomContainer    (ComponentInstance         ci,
  442.                                  QTAtomContainer *        settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
  443.  
  444. EXTERN_API( ComponentResult )
  445. SCSetSettingsFromAtomContainer    (ComponentInstance         ci,
  446.                                  QTAtomContainer         settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001C, 0x7000, 0xA82A);
  447.  
  448.  
  449.  
  450.  
  451.  
  452. enum {
  453.     TweenComponentType            = FOUR_CHAR_CODE('twen')
  454. };
  455.  
  456.  
  457. typedef ComponentInstance                 TweenerComponent;
  458. typedef struct TweenRecord                 TweenRecord;
  459. typedef CALLBACK_API( ComponentResult , TweenerDataProcPtr )(TweenRecord *tr, void *tweenData, long tweenDataSize, long dataDescriptionSeed, Handle dataDescription, ICMCompletionProcRecordPtr asyncCompletionProc, UniversalProcPtr transferProc, void *refCon);
  460. typedef STACK_UPP_TYPE(TweenerDataProcPtr)                         TweenerDataUPP;
  461.  
  462. struct TweenRecord {
  463.     long                             version;
  464.  
  465.     QTAtomContainer                 container;
  466.     QTAtom                             tweenAtom;
  467.     QTAtom                             dataAtom;
  468.     Fixed                             percent;
  469.  
  470.     TweenerDataUPP                     dataProc;
  471.  
  472.     void *                            private1;
  473.     void *                            private2;
  474. };
  475.  
  476.  
  477. struct TweenV1Record {
  478.     long                             version;
  479.  
  480.     QTAtomContainer                 container;
  481.     QTAtom                             tweenAtom;
  482.     QTAtom                             dataAtom;
  483.     Fixed                             percent;
  484.  
  485.     TweenerDataUPP                     dataProc;
  486.  
  487.     void *                            private1;
  488.     void *                            private2;
  489.  
  490.     Fract                             fractPercent;
  491. };
  492. typedef struct TweenV1Record            TweenV1Record;
  493. EXTERN_API( ComponentResult )
  494. TweenerInitialize                (TweenerComponent         tc,
  495.                                  QTAtomContainer         container,
  496.                                  QTAtom                 tweenAtom,
  497.                                  QTAtom                 dataAtom)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x0001, 0x7000, 0xA82A);
  498.  
  499. EXTERN_API( ComponentResult )
  500. TweenerDoTween                    (TweenerComponent         tc,
  501.                                  TweenRecord *            tr)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0002, 0x7000, 0xA82A);
  502.  
  503. EXTERN_API( ComponentResult )
  504. TweenerReset                    (TweenerComponent         tc)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0003, 0x7000, 0xA82A);
  505.  
  506.  
  507.  
  508.  
  509. enum {
  510.     TCSourceRefNameType            = FOUR_CHAR_CODE('name')
  511. };
  512.  
  513.  
  514. enum {
  515.     tcDropFrame                    = 1 << 0,
  516.     tc24HourMax                    = 1 << 1,
  517.     tcNegTimesOK                = 1 << 2,
  518.     tcCounter                    = 1 << 3
  519. };
  520.  
  521.  
  522. struct TimeCodeDef {
  523.     long                             flags;                        /* drop-frame, etc.*/
  524.     TimeScale                         fTimeScale;                    /* time scale of frameDuration (eg. 2997)*/
  525.     TimeValue                         frameDuration;                /* duration of each frame (eg. 100)*/
  526.     UInt8                             numFrames;                    /* frames/sec for timecode (eg. 30) OR frames/tick for counter mode*/
  527.     UInt8                             padding;                    /* unused padding byte*/
  528. };
  529. typedef struct TimeCodeDef                TimeCodeDef;
  530.  
  531. enum {
  532.     tctNegFlag                    = 0x80                            /* negative bit is in minutes*/
  533. };
  534.  
  535.  
  536. struct TimeCodeTime {
  537.     UInt8                             hours;
  538.     UInt8                             minutes;
  539.     UInt8                             seconds;
  540.     UInt8                             frames;
  541. };
  542. typedef struct TimeCodeTime                TimeCodeTime;
  543.  
  544. struct TimeCodeCounter {
  545.     long                             counter;
  546. };
  547. typedef struct TimeCodeCounter            TimeCodeCounter;
  548.  
  549. union TimeCodeRecord {
  550.     TimeCodeTime                     t;
  551.     TimeCodeCounter                 c;
  552. };
  553. typedef union TimeCodeRecord            TimeCodeRecord;
  554.  
  555. struct TimeCodeDescription {
  556.     long                             descSize;                    /* standard sample description header*/
  557.     long                             dataFormat;
  558.     long                             resvd1;
  559.     short                             resvd2;
  560.     short                             dataRefIndex;
  561.     long                             flags;                        /* timecode specific stuff*/
  562.     TimeCodeDef                     timeCodeDef;
  563.     long                             srcRef[1];
  564. };
  565. typedef struct TimeCodeDescription        TimeCodeDescription;
  566. typedef TimeCodeDescription *            TimeCodeDescriptionPtr;
  567. typedef TimeCodeDescriptionPtr *        TimeCodeDescriptionHandle;
  568.  
  569. enum {
  570.     tcdfShowTimeCode            = 1 << 0
  571. };
  572.  
  573.  
  574. struct TCTextOptions {
  575.     short                             txFont;
  576.     short                             txFace;
  577.     short                             txSize;
  578.     short                             pad;                        /* let's make it longword aligned - thanks.. */
  579.     RGBColor                         foreColor;
  580.     RGBColor                         backColor;
  581. };
  582. typedef struct TCTextOptions            TCTextOptions;
  583. typedef TCTextOptions *                    TCTextOptionsPtr;
  584. EXTERN_API( HandlerError )
  585. TCGetCurrentTimeCode            (MediaHandler             mh,
  586.                                  long *                    frameNum,
  587.                                  TimeCodeDef *            tcdef,
  588.                                  TimeCodeRecord *        tcrec,
  589.                                  UserData *                srcRefH)                            FIVEWORDINLINE(0x2F3C, 0x0010, 0x0101, 0x7000, 0xA82A);
  590.  
  591. EXTERN_API( HandlerError )
  592. TCGetTimeCodeAtTime                (MediaHandler             mh,
  593.                                  TimeValue                 mediaTime,
  594.                                  long *                    frameNum,
  595.                                  TimeCodeDef *            tcdef,
  596.                                  TimeCodeRecord *        tcdata,
  597.                                  UserData *                srcRefH)                            FIVEWORDINLINE(0x2F3C, 0x0014, 0x0102, 0x7000, 0xA82A);
  598.  
  599. EXTERN_API( HandlerError )
  600. TCTimeCodeToString                (MediaHandler             mh,
  601.                                  TimeCodeDef *            tcdef,
  602.                                  TimeCodeRecord *        tcrec,
  603.                                  StringPtr                 tcStr)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0103, 0x7000, 0xA82A);
  604.  
  605. EXTERN_API( HandlerError )
  606. TCTimeCodeToFrameNumber            (MediaHandler             mh,
  607.                                  TimeCodeDef *            tcdef,
  608.                                  TimeCodeRecord *        tcrec,
  609.                                  long *                    frameNumber)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x0104, 0x7000, 0xA82A);
  610.  
  611. EXTERN_API( HandlerError )
  612. TCFrameNumberToTimeCode            (MediaHandler             mh,
  613.                                  long                     frameNumber,
  614.                                  TimeCodeDef *            tcdef,
  615.                                  TimeCodeRecord *        tcrec)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0105, 0x7000, 0xA82A);
  616.  
  617. EXTERN_API( HandlerError )
  618. TCGetSourceRef                    (MediaHandler             mh,
  619.                                  TimeCodeDescriptionHandle  tcdH,
  620.                                  UserData *                srefH)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0106, 0x7000, 0xA82A);
  621.  
  622. EXTERN_API( HandlerError )
  623. TCSetSourceRef                    (MediaHandler             mh,
  624.                                  TimeCodeDescriptionHandle  tcdH,
  625.                                  UserData                 srefH)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0107, 0x7000, 0xA82A);
  626.  
  627. EXTERN_API( HandlerError )
  628. TCSetTimeCodeFlags                (MediaHandler             mh,
  629.                                  long                     flags,
  630.                                  long                     flagsMask)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0108, 0x7000, 0xA82A);
  631.  
  632. EXTERN_API( HandlerError )
  633. TCGetTimeCodeFlags                (MediaHandler             mh,
  634.                                  long *                    flags)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0109, 0x7000, 0xA82A);
  635.  
  636. EXTERN_API( HandlerError )
  637. TCSetDisplayOptions                (MediaHandler             mh,
  638.                                  TCTextOptionsPtr         textOptions)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x010A, 0x7000, 0xA82A);
  639.  
  640. EXTERN_API( HandlerError )
  641. TCGetDisplayOptions                (MediaHandler             mh,
  642.                                  TCTextOptionsPtr         textOptions)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x010B, 0x7000, 0xA82A);
  643.  
  644.  
  645.  
  646.  
  647. typedef ComponentInstance                 MovieImportComponent;
  648. typedef ComponentInstance                 MovieExportComponent;
  649.  
  650. enum {
  651.     MovieImportType                = FOUR_CHAR_CODE('eat '),
  652.     MovieExportType                = FOUR_CHAR_CODE('spit')
  653. };
  654.  
  655.  
  656. enum {
  657.     canMovieImportHandles        = 1 << 0,
  658.     canMovieImportFiles            = 1 << 1,
  659.     hasMovieImportUserInterface    = 1 << 2,
  660.     canMovieExportHandles        = 1 << 3,
  661.     canMovieExportFiles            = 1 << 4,
  662.     hasMovieExportUserInterface    = 1 << 5,
  663.     dontAutoFileMovieImport        = 1 << 6,
  664.     canMovieExportAuxDataHandle    = 1 << 7,
  665.     canMovieImportValidateHandles = 1 << 8,
  666.     canMovieImportValidateFile    = 1 << 9,
  667.     dontRegisterWithEasyOpen    = 1 << 10,
  668.     canMovieImportInPlace        = 1 << 11,
  669.     movieImportSubTypeIsFileExtension = 1 << 12,
  670.     canMovieImportPartial        = 1 << 13,
  671.     hasMovieImportMIMEList        = 1 << 14,
  672.     canMovieExportFromProcedures = 1 << 15,
  673.     canMovieExportValidateMovie    = 1L << 16,
  674.     movieExportNeedsResourceFork = 1L << 17,
  675.     canMovieImportDataReferences = 1L << 18,
  676.     reservedForUseByGraphicsImporters = 1L << 23
  677. };
  678.  
  679.  
  680. enum {
  681.     movieImportCreateTrack        = 1,
  682.     movieImportInParallel        = 2,
  683.     movieImportMustUseTrack        = 4
  684. };
  685.  
  686.  
  687. enum {
  688.     movieImportResultUsedMultipleTracks = 8
  689. };
  690.  
  691.  
  692. enum {
  693.     kMovieExportTextOnly        = 0,
  694.     kMovieExportAbsoluteTime    = 1,
  695.     kMovieExportRelativeTime    = 2
  696. };
  697.  
  698.  
  699. enum {
  700.     kMIDIImportSilenceBefore    = 1 << 0,
  701.     kMIDIImportSilenceAfter        = 1 << 1,
  702.     kMIDIImport20Playable        = 1 << 2,
  703.     kMIDIImportWantLyrics        = 1 << 3
  704. };
  705.  
  706.  
  707. enum {
  708.     kMimeInfoMimeTypeTag        = FOUR_CHAR_CODE('mime'),
  709.     kMimeInfoFileExtensionTag    = FOUR_CHAR_CODE('ext '),
  710.     kMimeInfoDescriptionTag        = FOUR_CHAR_CODE('desc')
  711. };
  712.  
  713.  
  714. enum {
  715.     kQTFileTypeAIFF                = FOUR_CHAR_CODE('AIFF'),
  716.     kQTFileTypeAIFC                = FOUR_CHAR_CODE('AIFC'),
  717.     kQTFileTypeDVC                = FOUR_CHAR_CODE('dvc!'),
  718.     kQTFileTypeMIDI                = FOUR_CHAR_CODE('Midi'),
  719.     kQTFileTypePicture            = FOUR_CHAR_CODE('PICT'),
  720.     kQTFileTypeMovie            = FOUR_CHAR_CODE('MooV'),
  721.     kQTFileTypeText                = FOUR_CHAR_CODE('TEXT'),
  722.     kQTFileTypeWave                = FOUR_CHAR_CODE('WAVE'),
  723.     kQTFileTypeSystemSevenSound    = FOUR_CHAR_CODE('sfil'),
  724.     kQTFileTypeMuLaw            = FOUR_CHAR_CODE('ULAW'),
  725.     kQTFileTypeAVI                = FOUR_CHAR_CODE('VfW '),
  726.     kQTFileTypeSoundDesignerII    = FOUR_CHAR_CODE('Sd2f'),
  727.     kQTFileTypeAudioCDTrack        = FOUR_CHAR_CODE('trak'),
  728.     kQTFileTypePICS                = FOUR_CHAR_CODE('PICS'),
  729.     kQTFileTypeGIF                = FOUR_CHAR_CODE('GIFf'),
  730.     kQTFileTypePhotoShop        = FOUR_CHAR_CODE('8BPS'),
  731.     kQTFileTypeSGIImage            = FOUR_CHAR_CODE('.SGI'),
  732.     kQTFileTypeBMP                = FOUR_CHAR_CODE('BMPf'),
  733.     kQTFileTypeJPEG                = FOUR_CHAR_CODE('JPEG'),
  734.     kQTFileTypeJFIF                = FOUR_CHAR_CODE('JPEG'),
  735.     kQTFileTypeMacPaint            = FOUR_CHAR_CODE('PNTG'),
  736.     kQTFileTypeTargaImage        = FOUR_CHAR_CODE('TPIC'),
  737.     kQTFileTypeQuickDrawGXPicture = FOUR_CHAR_CODE('qdgx'),
  738.     kQTFileTypeQuickTimeImage    = FOUR_CHAR_CODE('qtif'),
  739.     kQTFileType3DMF                = FOUR_CHAR_CODE('3DMF')
  740. };
  741.  
  742. /* QTAtomTypes for atoms in import/export settings containers*/
  743.  
  744. enum {
  745.     kQTSettingsEffect            = FOUR_CHAR_CODE('effe'),        /* Parent atom whose contents are atoms of an effects description*/
  746.     kQTSettingsMIDI                = FOUR_CHAR_CODE('MIDI'),        /* MIDI import related container*/
  747.     kQTSettingsMIDISettingFlags    = FOUR_CHAR_CODE('sttg'),        /* MIDI import settings    (UInt32)*/
  748.     kQTSettingsText                = FOUR_CHAR_CODE('text'),        /* Text related container*/
  749.     kQTSettingsTextDescription    = FOUR_CHAR_CODE('desc'),        /* Text settings (TextDescription record)*/
  750.     kQTSettingsTextSize            = FOUR_CHAR_CODE('size'),        /* Width/height to create (FixedPoint)*/
  751.     kQTSettingsTextSettingFlags    = FOUR_CHAR_CODE('sttg'),        /* Text export settings (UInt32)*/
  752.     kQTSettingsTextTimeFraction    = FOUR_CHAR_CODE('timf'),        /* Movie time fraction for export (UInt32)*/
  753.     kQTSettingsTime                = FOUR_CHAR_CODE('time'),        /* Time related container*/
  754.     kQTSettingsAudioCDTrack        = FOUR_CHAR_CODE('trak'),        /* Audio CD track related container*/
  755.     kQTSettingsAudioCDTrackRateShift = FOUR_CHAR_CODE('rshf')    /* Rate shift to be performed (SInt16)*/
  756. };
  757.  
  758.  
  759.  
  760.  
  761.  
  762. struct MovieExportGetDataParams {
  763.     long                             recordSize;
  764.  
  765.     long                             trackID;
  766.  
  767.     TimeScale                         sourceTimeScale;
  768.     TimeValue                         requestedTime;
  769.     TimeValue                         actualTime;
  770.  
  771.     Ptr                             dataPtr;
  772.     long                             dataSize;
  773.  
  774.     SampleDescriptionHandle         desc;
  775.     OSType                             descType;
  776.     long                             descSeed;
  777.  
  778.     long                             requestedSampleCount;
  779.     long                             actualSampleCount;
  780.     TimeValue                         durationPerSample;
  781.     long                             sampleFlags;
  782. };
  783. typedef struct MovieExportGetDataParams    MovieExportGetDataParams;
  784. typedef CALLBACK_API( OSErr , MovieExportGetDataProcPtr )(void *refCon, MovieExportGetDataParams *params);
  785. typedef CALLBACK_API( OSErr , MovieExportGetPropertyProcPtr )(void *refcon, long trackID, OSType propertyType, void *propertyValue);
  786. typedef STACK_UPP_TYPE(MovieExportGetDataProcPtr)                 MovieExportGetDataUPP;
  787. typedef STACK_UPP_TYPE(MovieExportGetPropertyProcPtr)             MovieExportGetPropertyUPP;
  788. enum { uppSCModalFilterProcInfo = 0x00003FD0 };                 /* pascal 1_byte Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  789. enum { uppSCModalHookProcInfo = 0x00003EE0 };                     /* pascal 2_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes) */
  790. enum { uppTweenerDataProcInfo = 0x003FFFF0 };                     /* pascal 4_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  791. enum { uppMovieExportGetDataProcInfo = 0x000003E0 };             /* pascal 2_bytes Func(4_bytes, 4_bytes) */
  792. enum { uppMovieExportGetPropertyProcInfo = 0x00003FE0 };         /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  793. #define NewSCModalFilterProc(userRoutine)                         (SCModalFilterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSCModalFilterProcInfo, GetCurrentArchitecture())
  794. #define NewSCModalHookProc(userRoutine)                         (SCModalHookUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSCModalHookProcInfo, GetCurrentArchitecture())
  795. #define NewTweenerDataProc(userRoutine)                         (TweenerDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppTweenerDataProcInfo, GetCurrentArchitecture())
  796. #define NewMovieExportGetDataProc(userRoutine)                     (MovieExportGetDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMovieExportGetDataProcInfo, GetCurrentArchitecture())
  797. #define NewMovieExportGetPropertyProc(userRoutine)                 (MovieExportGetPropertyUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppMovieExportGetPropertyProcInfo, GetCurrentArchitecture())
  798. #define CallSCModalFilterProc(userRoutine, theDialog, theEvent, itemHit, refcon)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppSCModalFilterProcInfo, (theDialog), (theEvent), (itemHit), (refcon))
  799. #define CallSCModalHookProc(userRoutine, theDialog, itemHit, params, refcon)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppSCModalHookProcInfo, (theDialog), (itemHit), (params), (refcon))
  800. #define CallTweenerDataProc(userRoutine, tr, tweenData, tweenDataSize, dataDescriptionSeed, dataDescription, asyncCompletionProc, transferProc, refCon)  CALL_EIGHT_PARAMETER_UPP((userRoutine), uppTweenerDataProcInfo, (tr), (tweenData), (tweenDataSize), (dataDescriptionSeed), (dataDescription), (asyncCompletionProc), (transferProc), (refCon))
  801. #define CallMovieExportGetDataProc(userRoutine, refCon, params)  CALL_TWO_PARAMETER_UPP((userRoutine), uppMovieExportGetDataProcInfo, (refCon), (params))
  802. #define CallMovieExportGetPropertyProc(userRoutine, refcon, trackID, propertyType, propertyValue)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppMovieExportGetPropertyProcInfo, (refcon), (trackID), (propertyType), (propertyValue))
  803. EXTERN_API( ComponentResult )
  804. MovieImportHandle                (MovieImportComponent     ci,
  805.                                  Handle                 dataH,
  806.                                  Movie                     theMovie,
  807.                                  Track                     targetTrack,
  808.                                  Track *                usedTrack,
  809.                                  TimeValue                 atTime,
  810.                                  TimeValue *            addedDuration,
  811.                                  long                     inFlags,
  812.                                  long *                    outFlags)                            FIVEWORDINLINE(0x2F3C, 0x0020, 0x0001, 0x7000, 0xA82A);
  813.  
  814. EXTERN_API( ComponentResult )
  815. MovieImportFile                    (MovieImportComponent     ci,
  816.                                  const FSSpec *            theFile,
  817.                                  Movie                     theMovie,
  818.                                  Track                     targetTrack,
  819.                                  Track *                usedTrack,
  820.                                  TimeValue                 atTime,
  821.                                  TimeValue *            addedDuration,
  822.                                  long                     inFlags,
  823.                                  long *                    outFlags)                            FIVEWORDINLINE(0x2F3C, 0x0020, 0x0002, 0x7000, 0xA82A);
  824.  
  825. EXTERN_API( ComponentResult )
  826. MovieImportSetSampleDuration    (MovieImportComponent     ci,
  827.                                  TimeValue                 duration,
  828.                                  TimeScale                 scale)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0003, 0x7000, 0xA82A);
  829.  
  830. EXTERN_API( ComponentResult )
  831. MovieImportSetSampleDescription    (MovieImportComponent     ci,
  832.                                  SampleDescriptionHandle  desc,
  833.                                  OSType                 mediaType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0004, 0x7000, 0xA82A);
  834.  
  835. EXTERN_API( ComponentResult )
  836. MovieImportSetMediaFile            (MovieImportComponent     ci,
  837.                                  AliasHandle             alias)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0005, 0x7000, 0xA82A);
  838.  
  839. EXTERN_API( ComponentResult )
  840. MovieImportSetDimensions        (MovieImportComponent     ci,
  841.                                  Fixed                     width,
  842.                                  Fixed                     height)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0006, 0x7000, 0xA82A);
  843.  
  844. EXTERN_API( ComponentResult )
  845. MovieImportSetChunkSize            (MovieImportComponent     ci,
  846.                                  long                     chunkSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  847.  
  848. EXTERN_API( ComponentResult )
  849. MovieImportSetProgressProc        (MovieImportComponent     ci,
  850.                                  MovieProgressUPP         proc,
  851.                                  long                     refcon)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0008, 0x7000, 0xA82A);
  852.  
  853. EXTERN_API( ComponentResult )
  854. MovieImportSetAuxiliaryData        (MovieImportComponent     ci,
  855.                                  Handle                 data,
  856.                                  OSType                 handleType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0009, 0x7000, 0xA82A);
  857.  
  858. EXTERN_API( ComponentResult )
  859. MovieImportSetFromScrap            (MovieImportComponent     ci,
  860.                                  Boolean                 fromScrap)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x000A, 0x7000, 0xA82A);
  861.  
  862. EXTERN_API( ComponentResult )
  863. MovieImportDoUserDialog            (MovieImportComponent     ci,
  864.                                  const FSSpec *            theFile,
  865.                                  Handle                 theData,
  866.                                  Boolean *                canceled)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x000B, 0x7000, 0xA82A);
  867.  
  868. EXTERN_API( ComponentResult )
  869. MovieImportSetDuration            (MovieImportComponent     ci,
  870.                                  TimeValue                 duration)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
  871.  
  872. EXTERN_API( ComponentResult )
  873. MovieImportGetAuxiliaryDataType    (MovieImportComponent     ci,
  874.                                  OSType *                auxType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
  875.  
  876. EXTERN_API( ComponentResult )
  877. MovieImportValidate                (MovieImportComponent     ci,
  878.                                  const FSSpec *            theFile,
  879.                                  Handle                 theData,
  880.                                  Boolean *                valid)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x000E, 0x7000, 0xA82A);
  881.  
  882. EXTERN_API( ComponentResult )
  883. MovieImportGetFileType            (MovieImportComponent     ci,
  884.                                  OSType *                fileType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000F, 0x7000, 0xA82A);
  885.  
  886. EXTERN_API( ComponentResult )
  887. MovieImportDataRef                (MovieImportComponent     ci,
  888.                                  Handle                 dataRef,
  889.                                  OSType                 dataRefType,
  890.                                  Movie                     theMovie,
  891.                                  Track                     targetTrack,
  892.                                  Track *                usedTrack,
  893.                                  TimeValue                 atTime,
  894.                                  TimeValue *            addedDuration,
  895.                                  long                     inFlags,
  896.                                  long *                    outFlags)                            FIVEWORDINLINE(0x2F3C, 0x0024, 0x0010, 0x7000, 0xA82A);
  897.  
  898. EXTERN_API( ComponentResult )
  899. MovieImportGetSampleDescription    (MovieImportComponent     ci,
  900.                                  SampleDescriptionHandle * desc,
  901.                                  OSType *                mediaType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0011, 0x7000, 0xA82A);
  902.  
  903. EXTERN_API( ComponentResult )
  904. MovieImportGetMIMETypeList        (MovieImportComponent     ci,
  905.                                  QTAtomContainer *        mimeInfo)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
  906.  
  907. EXTERN_API( ComponentResult )
  908. MovieImportSetOffsetAndLimit    (MovieImportComponent     ci,
  909.                                  unsigned long             offset,
  910.                                  unsigned long             limit)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0013, 0x7000, 0xA82A);
  911.  
  912. EXTERN_API( ComponentResult )
  913. MovieImportGetSettingsAsAtomContainer (MovieImportComponent  ci,
  914.                                  QTAtomContainer *        settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
  915.  
  916. EXTERN_API( ComponentResult )
  917. MovieImportSetSettingsFromAtomContainer (MovieImportComponent  ci,
  918.                                  QTAtomContainer         settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
  919.  
  920. EXTERN_API( ComponentResult )
  921. MovieExportToHandle                (MovieExportComponent     ci,
  922.                                  Handle                 dataH,
  923.                                  Movie                     theMovie,
  924.                                  Track                     onlyThisTrack,
  925.                                  TimeValue                 startTime,
  926.                                  TimeValue                 duration)                            FIVEWORDINLINE(0x2F3C, 0x0014, 0x0080, 0x7000, 0xA82A);
  927.  
  928. EXTERN_API( ComponentResult )
  929. MovieExportToFile                (MovieExportComponent     ci,
  930.                                  const FSSpec *            theFile,
  931.                                  Movie                     theMovie,
  932.                                  Track                     onlyThisTrack,
  933.                                  TimeValue                 startTime,
  934.                                  TimeValue                 duration)                            FIVEWORDINLINE(0x2F3C, 0x0014, 0x0081, 0x7000, 0xA82A);
  935.  
  936. EXTERN_API( ComponentResult )
  937. MovieExportGetAuxiliaryData        (MovieExportComponent     ci,
  938.                                  Handle                 dataH,
  939.                                  OSType *                handleType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0083, 0x7000, 0xA82A);
  940.  
  941. EXTERN_API( ComponentResult )
  942. MovieExportSetProgressProc        (MovieExportComponent     ci,
  943.                                  MovieProgressUPP         proc,
  944.                                  long                     refcon)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0084, 0x7000, 0xA82A);
  945.  
  946. EXTERN_API( ComponentResult )
  947. MovieExportSetSampleDescription    (MovieExportComponent     ci,
  948.                                  SampleDescriptionHandle  desc,
  949.                                  OSType                 mediaType)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0085, 0x7000, 0xA82A);
  950.  
  951. EXTERN_API( ComponentResult )
  952. MovieExportDoUserDialog            (MovieExportComponent     ci,
  953.                                  Movie                     theMovie,
  954.                                  Track                     onlyThisTrack,
  955.                                  TimeValue                 startTime,
  956.                                  TimeValue                 duration,
  957.                                  Boolean *                canceled)                            FIVEWORDINLINE(0x2F3C, 0x0014, 0x0086, 0x7000, 0xA82A);
  958.  
  959. EXTERN_API( ComponentResult )
  960. MovieExportGetCreatorType        (MovieExportComponent     ci,
  961.                                  OSType *                creator)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0087, 0x7000, 0xA82A);
  962.  
  963. EXTERN_API( ComponentResult )
  964. MovieExportToDataRef            (MovieExportComponent     ci,
  965.                                  Handle                 dataRef,
  966.                                  OSType                 dataRefType,
  967.                                  Movie                     theMovie,
  968.                                  Track                     onlyThisTrack,
  969.                                  TimeValue                 startTime,
  970.                                  TimeValue                 duration)                            FIVEWORDINLINE(0x2F3C, 0x0018, 0x0088, 0x7000, 0xA82A);
  971.  
  972. EXTERN_API( ComponentResult )
  973. MovieExportFromProceduresToDataRef (MovieExportComponent  ci,
  974.                                  Handle                 dataRef,
  975.                                  OSType                 dataRefType)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0089, 0x7000, 0xA82A);
  976.  
  977. EXTERN_API( ComponentResult )
  978. MovieExportAddDataSource        (MovieExportComponent     ci,
  979.                                  OSType                 trackType,
  980.                                  TimeScale                 scale,
  981.                                  long *                    trackID,
  982.                                  MovieExportGetPropertyUPP  getPropertyProc,
  983.                                  MovieExportGetDataUPP     getDataProc,
  984.                                  void *                    refCon)                                FIVEWORDINLINE(0x2F3C, 0x0018, 0x008A, 0x7000, 0xA82A);
  985.  
  986. EXTERN_API( ComponentResult )
  987. MovieExportValidate                (MovieExportComponent     ci,
  988.                                  Movie                     theMovie,
  989.                                  Track                     onlyThisTrack,
  990.                                  Boolean *                valid)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x008B, 0x7000, 0xA82A);
  991.  
  992. EXTERN_API( ComponentResult )
  993. MovieExportGetSettingsAsAtomContainer (MovieExportComponent  ci,
  994.                                  QTAtomContainer *        settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008C, 0x7000, 0xA82A);
  995.  
  996. EXTERN_API( ComponentResult )
  997. MovieExportSetSettingsFromAtomContainer (MovieExportComponent  ci,
  998.                                  QTAtomContainer         settings)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008D, 0x7000, 0xA82A);
  999.  
  1000. EXTERN_API( ComponentResult )
  1001. MovieExportGetFileNameExtension    (MovieExportComponent     ci,
  1002.                                  OSType *                extension)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008E, 0x7000, 0xA82A);
  1003.  
  1004. EXTERN_API( ComponentResult )
  1005. MovieExportGetShortFileTypeString (MovieExportComponent  ci,
  1006.                                  Str255                 typeString)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008F, 0x7000, 0xA82A);
  1007.  
  1008. /* Text Export Display Info data structure*/
  1009.  
  1010. struct TextDisplayData {
  1011.     long                             displayFlags;
  1012.     long                             textJustification;
  1013.     RGBColor                         bgColor;
  1014.     Rect                             textBox;
  1015.  
  1016.     short                             beginHilite;
  1017.     short                             endHilite;
  1018.     RGBColor                         hiliteColor;
  1019.     Boolean                         doHiliteColor;
  1020.     SInt8                             filler;
  1021.     TimeValue                         scrollDelayDur;
  1022.     Point                             dropShadowOffset;
  1023.     short                             dropShadowTransparency;
  1024. };
  1025. typedef struct TextDisplayData            TextDisplayData;
  1026.  
  1027. typedef ComponentInstance                 TextExportComponent;
  1028. typedef ComponentInstance                 GraphicImageMovieImportComponent;
  1029. EXTERN_API( ComponentResult )
  1030. TextExportGetDisplayData        (TextExportComponent     ci,
  1031.                                  TextDisplayData *        textDisplay)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  1032.  
  1033. EXTERN_API( ComponentResult )
  1034. TextExportGetTimeFraction        (TextExportComponent     ci,
  1035.                                  long *                    movieTimeFraction)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  1036.  
  1037. EXTERN_API( ComponentResult )
  1038. TextExportSetTimeFraction        (TextExportComponent     ci,
  1039.                                  long                     movieTimeFraction)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0102, 0x7000, 0xA82A);
  1040.  
  1041. EXTERN_API( ComponentResult )
  1042. TextExportGetSettings            (TextExportComponent     ci,
  1043.                                  long *                    setting)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  1044.  
  1045. EXTERN_API( ComponentResult )
  1046. TextExportSetSettings            (TextExportComponent     ci,
  1047.                                  long                     setting)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0104, 0x7000, 0xA82A);
  1048.  
  1049. EXTERN_API( ComponentResult )
  1050. MIDIImportGetSettings            (TextExportComponent     ci,
  1051.                                  long *                    setting)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  1052.  
  1053. EXTERN_API( ComponentResult )
  1054. MIDIImportSetSettings            (TextExportComponent     ci,
  1055.                                  long                     setting)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  1056.  
  1057. EXTERN_API( ComponentResult )
  1058. MovieExportNewGetDataAndPropertiesProcs (MovieExportComponent  ci,
  1059.                                  OSType                 trackType,
  1060.                                  TimeScale *            scale,
  1061.                                  Movie                     theMovie,
  1062.                                  Track                     theTrack,
  1063.                                  TimeValue                 startTime,
  1064.                                  TimeValue                 duration,
  1065.                                  MovieExportGetPropertyUPP * getPropertyProc,
  1066.                                  MovieExportGetDataUPP * getDataProc,
  1067.                                  void **                refCon)                                FIVEWORDINLINE(0x2F3C, 0x0024, 0x0100, 0x7000, 0xA82A);
  1068.  
  1069. EXTERN_API( ComponentResult )
  1070. MovieExportDisposeGetDataAndPropertiesProcs (MovieExportComponent  ci,
  1071.                                  MovieExportGetPropertyUPP  getPropertyProc,
  1072.                                  MovieExportGetDataUPP     getDataProc,
  1073.                                  void *                    refCon)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0101, 0x7000, 0xA82A);
  1074.  
  1075.  
  1076. enum {
  1077.     movieExportWidth            = FOUR_CHAR_CODE('wdth'),        /* pointer to Fixed*/
  1078.     movieExportHeight            = FOUR_CHAR_CODE('hegt'),        /* pointer to Fixed*/
  1079.     movieExportDuration            = FOUR_CHAR_CODE('dura'),        /* pointer to TimeRecord*/
  1080.     movieExportVideoFilter        = FOUR_CHAR_CODE('iflt')        /* pointer to QTAtomContainer*/
  1081. };
  1082.  
  1083. EXTERN_API( ComponentResult )
  1084. GraphicsImageImportSetSequenceEnabled (GraphicImageMovieImportComponent  ci,
  1085.                                  Boolean                 enable)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0100, 0x7000, 0xA82A);
  1086.  
  1087. EXTERN_API( ComponentResult )
  1088. GraphicsImageImportGetSequenceEnabled (GraphicImageMovieImportComponent  ci,
  1089.                                  Boolean *                enable)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098. /***************
  1099.  
  1100.     File Preview Components
  1101.  
  1102. ***************/
  1103. typedef ComponentInstance                 pnotComponent;
  1104.  
  1105. enum {
  1106.     pnotComponentWantsEvents    = 1,
  1107.     pnotComponentNeedsNoCache    = 2
  1108. };
  1109.  
  1110.  
  1111. enum {
  1112.     ShowFilePreviewComponentType = FOUR_CHAR_CODE('pnot'),
  1113.     CreateFilePreviewComponentType = FOUR_CHAR_CODE('pmak')
  1114. };
  1115.  
  1116. EXTERN_API( ComponentResult )
  1117. PreviewShowData                    (pnotComponent             p,
  1118.                                  OSType                 dataType,
  1119.                                  Handle                 data,
  1120.                                  const Rect *            inHere)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0001, 0x7000, 0xA82A);
  1121.  
  1122. EXTERN_API( ComponentResult )
  1123. PreviewMakePreview                (pnotComponent             p,
  1124.                                  OSType *                previewType,
  1125.                                  Handle *                previewResult,
  1126.                                  const FSSpec *            sourceFile,
  1127.                                  ICMProgressProcRecordPtr  progress)                        FIVEWORDINLINE(0x2F3C, 0x0010, 0x0002, 0x7000, 0xA82A);
  1128.  
  1129. EXTERN_API( ComponentResult )
  1130. PreviewMakePreviewReference        (pnotComponent             p,
  1131.                                  OSType *                previewType,
  1132.                                  short *                resID,
  1133.                                  const FSSpec *            sourceFile)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x0003, 0x7000, 0xA82A);
  1134.  
  1135. EXTERN_API( ComponentResult )
  1136. PreviewEvent                    (pnotComponent             p,
  1137.                                  EventRecord *            e,
  1138.                                  Boolean *                handledEvent)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0004, 0x7000, 0xA82A);
  1139.  
  1140.  
  1141.  
  1142. typedef ComponentInstance                 DataCompressorComponent;
  1143. typedef ComponentInstance                 DataDecompressorComponent;
  1144. typedef ComponentInstance                 DataCodecComponent;
  1145.  
  1146. enum {
  1147.     DataCompressorComponentType    = FOUR_CHAR_CODE('dcom'),
  1148.     DataDecompressorComponentType = FOUR_CHAR_CODE('ddec'),
  1149.     AppleDataCompressorSubType    = FOUR_CHAR_CODE('adec'),
  1150.     zlibDataCompressorSubType    = FOUR_CHAR_CODE('zlib')
  1151. };
  1152.  
  1153.  
  1154. /** These are DataCodec procedures **/
  1155. EXTERN_API( ComponentResult )
  1156. DataCodecDecompress                (DataCodecComponent     dc,
  1157.                                  void *                    srcData,
  1158.                                  UInt32                 srcSize,
  1159.                                  void *                    dstData,
  1160.                                  UInt32                 dstBufferSize)                        FIVEWORDINLINE(0x2F3C, 0x0010, 0x0001, 0x7000, 0xA82A);
  1161.  
  1162. EXTERN_API( ComponentResult )
  1163. DataCodecGetCompressBufferSize    (DataCodecComponent     dc,
  1164.                                  UInt32                 srcSize,
  1165.                                  UInt32 *                dstSize)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  1166.  
  1167. EXTERN_API( ComponentResult )
  1168. DataCodecCompress                (DataCodecComponent     dc,
  1169.                                  void *                    srcData,
  1170.                                  UInt32                 srcSize,
  1171.                                  void *                    dstData,
  1172.                                  UInt32                 dstBufferSize,
  1173.                                  UInt32 *                actualDstSize,
  1174.                                  UInt32 *                decompressSlop)                        FIVEWORDINLINE(0x2F3C, 0x0018, 0x0003, 0x7000, 0xA82A);
  1175.  
  1176. EXTERN_API( ComponentResult )
  1177. DataCodecBeginInterruptSafe        (DataCodecComponent     dc,
  1178.                                  unsigned long             maxSrcSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  1179.  
  1180. EXTERN_API( ComponentResult )
  1181. DataCodecEndInterruptSafe        (DataCodecComponent     dc)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0005, 0x7000, 0xA82A);
  1182.  
  1183. EXTERN_API( ComponentResult )
  1184. DataCodecDecompressPartial        (DataCodecComponent     dc,
  1185.                                  void **                next_in,
  1186.                                  unsigned long *        avail_in,
  1187.                                  unsigned long *        total_in,
  1188.                                  void **                next_out,
  1189.                                  unsigned long *        avail_out,
  1190.                                  unsigned long *        total_out,
  1191.                                  Boolean *                didFinish)                            FIVEWORDINLINE(0x2F3C, 0x001C, 0x0006, 0x7000, 0xA82A);
  1192.  
  1193. EXTERN_API( ComponentResult )
  1194. DataCodecCompressPartial        (DataCodecComponent     dc,
  1195.                                  void **                next_in,
  1196.                                  unsigned long *        avail_in,
  1197.                                  unsigned long *        total_in,
  1198.                                  void **                next_out,
  1199.                                  unsigned long *        avail_out,
  1200.                                  unsigned long *        total_out,
  1201.                                  Boolean                 tryToFinish,
  1202.                                  Boolean *                didFinish)                            FIVEWORDINLINE(0x2F3C, 0x001E, 0x0007, 0x7000, 0xA82A);
  1203.  
  1204.  
  1205.  
  1206.  
  1207. typedef CALLBACK_API( void , DataHCompletionProcPtr )(Ptr request, long refcon, OSErr err);
  1208. typedef STACK_UPP_TYPE(DataHCompletionProcPtr)                     DataHCompletionUPP;
  1209.  
  1210.  
  1211. enum {
  1212.     kDataHCanRead                = 1L << 0,
  1213.     kDataHSpecialRead            = 1L << 1,
  1214.     kDataHSpecialReadFile        = 1L << 2,
  1215.     kDataHCanWrite                = 1L << 3,
  1216.     kDataHSpecialWrite            = 1 << 4,
  1217.     kDataHSpecialWriteFile        = 1 << 5,
  1218.     kDataHCanStreamingWrite        = 1 << 6,
  1219.     kDataHMustCheckDataRef        = 1 << 7
  1220. };
  1221.  
  1222.  
  1223. struct DataHVolumeListRecord {
  1224.     short                             vRefNum;
  1225.     long                             flags;
  1226. };
  1227. typedef struct DataHVolumeListRecord    DataHVolumeListRecord;
  1228.  
  1229. typedef DataHVolumeListRecord *            DataHVolumeListPtr;
  1230. typedef DataHVolumeListPtr *            DataHVolumeList;
  1231.  
  1232. enum {
  1233.     kDataHExtendedSchedule        = FOUR_CHAR_CODE('xtnd')
  1234. };
  1235.  
  1236.  
  1237. struct DataHScheduleRecord {
  1238.     TimeRecord                         timeNeededBy;
  1239.     long                             extendedID;                    /* always is kDataHExtendedSchedule*/
  1240.     long                             extendedVers;                /* always set to 0*/
  1241.     Fixed                             priority;                    /* 100.0 or more means must have. lower numbers…*/
  1242. };
  1243. typedef struct DataHScheduleRecord        DataHScheduleRecord;
  1244.  
  1245. typedef DataHScheduleRecord *            DataHSchedulePtr;
  1246.  
  1247.  
  1248. EXTERN_API( ComponentResult )
  1249. DataHGetData                    (DataHandler             dh,
  1250.                                  Handle                 h,
  1251.                                  long                     hOffset,
  1252.                                  long                     offset,
  1253.                                  long                     size)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0002, 0x7000, 0xA82A);
  1254.  
  1255. EXTERN_API( ComponentResult )
  1256. DataHPutData                    (DataHandler             dh,
  1257.                                  Handle                 h,
  1258.                                  long                     hOffset,
  1259.                                  long *                    offset,
  1260.                                  long                     size)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0003, 0x7000, 0xA82A);
  1261.  
  1262. EXTERN_API( ComponentResult )
  1263. DataHFlushData                    (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0004, 0x7000, 0xA82A);
  1264.  
  1265. EXTERN_API( ComponentResult )
  1266. DataHOpenForWrite                (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0005, 0x7000, 0xA82A);
  1267.  
  1268. EXTERN_API( ComponentResult )
  1269. DataHCloseForWrite                (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0006, 0x7000, 0xA82A);
  1270.  
  1271.  
  1272. EXTERN_API( ComponentResult )
  1273. DataHOpenForRead                (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0008, 0x7000, 0xA82A);
  1274.  
  1275. EXTERN_API( ComponentResult )
  1276. DataHCloseForRead                (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0009, 0x7000, 0xA82A);
  1277.  
  1278. EXTERN_API( ComponentResult )
  1279. DataHSetDataRef                    (DataHandler             dh,
  1280.                                  Handle                 dataRef)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
  1281.  
  1282. EXTERN_API( ComponentResult )
  1283. DataHGetDataRef                    (DataHandler             dh,
  1284.                                  Handle *                dataRef)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000B, 0x7000, 0xA82A);
  1285.  
  1286. EXTERN_API( ComponentResult )
  1287. DataHCompareDataRef                (DataHandler             dh,
  1288.                                  Handle                 dataRef,
  1289.                                  Boolean *                equal)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x000C, 0x7000, 0xA82A);
  1290.  
  1291. EXTERN_API( ComponentResult )
  1292. DataHTask                        (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x000D, 0x7000, 0xA82A);
  1293.  
  1294. EXTERN_API( ComponentResult )
  1295. DataHScheduleData                (DataHandler             dh,
  1296.                                  Ptr                     PlaceToPutDataPtr,
  1297.                                  long                     FileOffset,
  1298.                                  long                     DataSize,
  1299.                                  long                     RefCon,
  1300.                                  DataHSchedulePtr         scheduleRec,
  1301.                                  DataHCompletionUPP     CompletionRtn)                        FIVEWORDINLINE(0x2F3C, 0x0018, 0x000E, 0x7000, 0xA82A);
  1302.  
  1303. EXTERN_API( ComponentResult )
  1304. DataHFinishData                    (DataHandler             dh,
  1305.                                  Ptr                     PlaceToPutDataPtr,
  1306.                                  Boolean                 Cancel)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x000F, 0x7000, 0xA82A);
  1307.  
  1308. EXTERN_API( ComponentResult )
  1309. DataHFlushCache                    (DataHandler             dh)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0010, 0x7000, 0xA82A);
  1310.  
  1311. EXTERN_API( ComponentResult )
  1312. DataHResolveDataRef                (DataHandler             dh,
  1313.                                  Handle                 theDataRef,
  1314.                                  Boolean *                wasChanged,
  1315.                                  Boolean                 userInterfaceAllowed)                FIVEWORDINLINE(0x2F3C, 0x000A, 0x0011, 0x7000, 0xA82A);
  1316.  
  1317. EXTERN_API( ComponentResult )
  1318. DataHGetFileSize                (DataHandler             dh,
  1319.                                  long *                    fileSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
  1320.  
  1321. EXTERN_API( ComponentResult )
  1322. DataHCanUseDataRef                (DataHandler             dh,
  1323.                                  Handle                 dataRef,
  1324.                                  long *                    useFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0013, 0x7000, 0xA82A);
  1325.  
  1326. EXTERN_API( ComponentResult )
  1327. DataHGetVolumeList                (DataHandler             dh,
  1328.                                  DataHVolumeList *        volumeList)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
  1329.  
  1330. EXTERN_API( ComponentResult )
  1331. DataHWrite                        (DataHandler             dh,
  1332.                                  Ptr                     data,
  1333.                                  long                     offset,
  1334.                                  long                     size,
  1335.                                  DataHCompletionUPP     completion,
  1336.                                  long                     refCon)                                FIVEWORDINLINE(0x2F3C, 0x0014, 0x0015, 0x7000, 0xA82A);
  1337.  
  1338. EXTERN_API( ComponentResult )
  1339. DataHPreextend                    (DataHandler             dh,
  1340.                                  unsigned long             maxToAdd,
  1341.                                  unsigned long *        spaceAdded)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0016, 0x7000, 0xA82A);
  1342.  
  1343. EXTERN_API( ComponentResult )
  1344. DataHSetFileSize                (DataHandler             dh,
  1345.                                  long                     fileSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0017, 0x7000, 0xA82A);
  1346.  
  1347. EXTERN_API( ComponentResult )
  1348. DataHGetFreeSpace                (DataHandler             dh,
  1349.                                  unsigned long *        freeSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0018, 0x7000, 0xA82A);
  1350.  
  1351. EXTERN_API( ComponentResult )
  1352. DataHCreateFile                    (DataHandler             dh,
  1353.                                  OSType                 creator,
  1354.                                  Boolean                 deleteExisting)                        FIVEWORDINLINE(0x2F3C, 0x0006, 0x0019, 0x7000, 0xA82A);
  1355.  
  1356. EXTERN_API( ComponentResult )
  1357. DataHGetPreferredBlockSize        (DataHandler             dh,
  1358.                                  long *                    blockSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
  1359.  
  1360. EXTERN_API( ComponentResult )
  1361. DataHGetDeviceIndex                (DataHandler             dh,
  1362.                                  long *                    deviceIndex)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
  1363.  
  1364. EXTERN_API( ComponentResult )
  1365. DataHIsStreamingDataHandler        (DataHandler             dh,
  1366.                                  Boolean *                yes)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001C, 0x7000, 0xA82A);
  1367.  
  1368. EXTERN_API( ComponentResult )
  1369. DataHGetDataInBuffer            (DataHandler             dh,
  1370.                                  long                     startOffset,
  1371.                                  long *                    size)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x001D, 0x7000, 0xA82A);
  1372.  
  1373. EXTERN_API( ComponentResult )
  1374. DataHGetScheduleAheadTime        (DataHandler             dh,
  1375.                                  long *                    millisecs)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001E, 0x7000, 0xA82A);
  1376.  
  1377. EXTERN_API( ComponentResult )
  1378. DataHSetCacheSizeLimit            (DataHandler             dh,
  1379.                                  Size                     cacheSizeLimit)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x001F, 0x7000, 0xA82A);
  1380.  
  1381. EXTERN_API( ComponentResult )
  1382. DataHGetCacheSizeLimit            (DataHandler             dh,
  1383.                                  Size *                    cacheSizeLimit)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0020, 0x7000, 0xA82A);
  1384.  
  1385. EXTERN_API( ComponentResult )
  1386. DataHGetMovie                    (DataHandler             dh,
  1387.                                  Movie *                theMovie,
  1388.                                  short *                id)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0021, 0x7000, 0xA82A);
  1389.  
  1390. EXTERN_API( ComponentResult )
  1391. DataHAddMovie                    (DataHandler             dh,
  1392.                                  Movie                     theMovie,
  1393.                                  short *                id)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0022, 0x7000, 0xA82A);
  1394.  
  1395. EXTERN_API( ComponentResult )
  1396. DataHUpdateMovie                (DataHandler             dh,
  1397.                                  Movie                     theMovie,
  1398.                                  short                     id)                                    FIVEWORDINLINE(0x2F3C, 0x0006, 0x0023, 0x7000, 0xA82A);
  1399.  
  1400. EXTERN_API( ComponentResult )
  1401. DataHDoesBuffer                    (DataHandler             dh,
  1402.                                  Boolean *                buffersReads,
  1403.                                  Boolean *                buffersWrites)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0024, 0x7000, 0xA82A);
  1404.  
  1405. EXTERN_API( ComponentResult )
  1406. DataHGetFileName                (DataHandler             dh,
  1407.                                  Str255                 str)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0025, 0x7000, 0xA82A);
  1408.  
  1409. EXTERN_API( ComponentResult )
  1410. DataHGetAvailableFileSize        (DataHandler             dh,
  1411.                                  long *                    fileSize)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0026, 0x7000, 0xA82A);
  1412.  
  1413. EXTERN_API( ComponentResult )
  1414. DataHGetMacOSFileType            (DataHandler             dh,
  1415.                                  OSType *                fileType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0027, 0x7000, 0xA82A);
  1416.  
  1417. EXTERN_API( ComponentResult )
  1418. DataHGetMIMEType                (DataHandler             dh,
  1419.                                  Str255                 mimeType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0028, 0x7000, 0xA82A);
  1420.  
  1421. EXTERN_API( ComponentResult )
  1422. DataHSetDataRefWithAnchor        (DataHandler             dh,
  1423.                                  Handle                 anchorDataRef,
  1424.                                  Handle                 dataRef)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0029, 0x7000, 0xA82A);
  1425.  
  1426. EXTERN_API( ComponentResult )
  1427. DataHGetDataRefWithAnchor        (DataHandler             dh,
  1428.                                  Handle                 anchorDataRef,
  1429.                                  Handle *                dataRef)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x002A, 0x7000, 0xA82A);
  1430.  
  1431. EXTERN_API( ComponentResult )
  1432. DataHSetMacOSFileType            (DataHandler             dh,
  1433.                                  OSType                 fileType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x002B, 0x7000, 0xA82A);
  1434.  
  1435.  
  1436. EXTERN_API( ComponentResult )
  1437. DataHPlaybackHints                (DataHandler             dh,
  1438.                                  long                     flags,
  1439.                                  unsigned long             minFileOffset,
  1440.                                  unsigned long             maxFileOffset,
  1441.                                  long                     bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0010, 0x0103, 0x7000, 0xA82A);
  1442.  
  1443.  
  1444.  
  1445.  
  1446. /* Standard type for video digitizers */
  1447.  
  1448. enum {
  1449.     videoDigitizerComponentType    = FOUR_CHAR_CODE('vdig'),
  1450.     vdigInterfaceRev            = 2
  1451. };
  1452.  
  1453. /* Input Format Standards */
  1454.  
  1455. enum {
  1456.     ntscIn                        = 0,                            /* current input format */
  1457.     currentIn                    = 0,                            /* ntsc input format */
  1458.     palIn                        = 1,                            /* pal input format */
  1459.     secamIn                        = 2,                            /* secam input format */
  1460.     ntscReallyIn                = 3                                /* ntsc input format */
  1461. };
  1462.  
  1463. /* Input Formats */
  1464.  
  1465. enum {
  1466.     compositeIn                    = 0,                            /* input is composite format */
  1467.     sVideoIn                    = 1,                            /* input is sVideo format */
  1468.     rgbComponentIn                = 2,                            /* input is rgb component format */
  1469.     rgbComponentSyncIn            = 3,                            /* input is rgb component format (sync on green?)*/
  1470.     yuvComponentIn                = 4,                            /* input is yuv component format */
  1471.     yuvComponentSyncIn            = 5,                            /* input is yuv component format (sync on green?) */
  1472.     tvTunerIn                    = 6,
  1473.     sdiIn                        = 7
  1474. };
  1475.  
  1476.  
  1477. /* Video Digitizer PlayThru States */
  1478.  
  1479. enum {
  1480.     vdPlayThruOff                = 0,
  1481.     vdPlayThruOn                = 1
  1482. };
  1483.  
  1484. /* Input Color Space Modes */
  1485.  
  1486. enum {
  1487.     vdDigitizerBW                = 0,                            /* black and white */
  1488.     vdDigitizerRGB                = 1                                /* rgb color */
  1489. };
  1490.  
  1491. /* Phase Lock Loop Modes */
  1492.  
  1493. enum {
  1494.     vdBroadcastMode                = 0,                            /* Broadcast / Laser Disk video mode */
  1495.     vdVTRMode                    = 1                                /* VCR / Magnetic media mode */
  1496. };
  1497.  
  1498. /* Field Select Options */
  1499.  
  1500. enum {
  1501.     vdUseAnyField                = 0,                            /* Digitizers choice on field use */
  1502.     vdUseOddField                = 1,                            /* Use odd field for half size vert and smaller */
  1503.     vdUseEvenField                = 2                                /* Use even field for half size vert and smaller */
  1504. };
  1505.  
  1506. /* vdig types */
  1507.  
  1508. enum {
  1509.     vdTypeBasic                    = 0,                            /* basic, no clipping */
  1510.     vdTypeAlpha                    = 1,                            /* supports clipping with alpha channel */
  1511.     vdTypeMask                    = 2,                            /* supports clipping with mask plane */
  1512.     vdTypeKey                    = 3                                /* supports clipping with key color(s) */
  1513. };
  1514.  
  1515.  
  1516.  
  1517. /* Digitizer Input Capability/Current Flags    */
  1518.  
  1519. enum {
  1520.     digiInDoesNTSC                = 1L << 0,                        /* digitizer supports NTSC input format */
  1521.     digiInDoesPAL                = 1L << 1,                        /* digitizer supports PAL input format */
  1522.     digiInDoesSECAM                = 1L << 2,                        /* digitizer supports SECAM input format */
  1523.     digiInDoesGenLock            = 1L << 7,                        /* digitizer does genlock */
  1524.     digiInDoesComposite            = 1L << 8,                        /* digitizer supports composite input type */
  1525.     digiInDoesSVideo            = 1L << 9,                        /* digitizer supports S-Video input type */
  1526.     digiInDoesComponent            = 1L << 10,                        /* digitizer supports component = rgb, input type */
  1527.     digiInVTR_Broadcast            = 1L << 11,                        /* digitizer can differentiate between the two */
  1528.     digiInDoesColor                = 1L << 12,                        /* digitizer supports color */
  1529.     digiInDoesBW                = 1L << 13,                        /* digitizer supports black & white */
  1530.                                                                 /* Digitizer Input Current Flags = these are valid only during active operating conditions,    */
  1531.     digiInSignalLock            = 1L << 31                        /* digitizer detects input signal is locked, this bit = horiz lock || vertical lock */
  1532. };
  1533.  
  1534.  
  1535. /* Digitizer Output Capability/Current Flags */
  1536.  
  1537. enum {
  1538.     digiOutDoes1                = 1L << 0,                        /* digitizer supports 1 bit pixels */
  1539.     digiOutDoes2                = 1L << 1,                        /* digitizer supports 2 bit pixels */
  1540.     digiOutDoes4                = 1L << 2,                        /* digitizer supports 4 bit pixels */
  1541.     digiOutDoes8                = 1L << 3,                        /* digitizer supports 8 bit pixels */
  1542.     digiOutDoes16                = 1L << 4,                        /* digitizer supports 16 bit pixels */
  1543.     digiOutDoes32                = 1L << 5,                        /* digitizer supports 32 bit pixels */
  1544.     digiOutDoesDither            = 1L << 6,                        /* digitizer dithers in indexed modes */
  1545.     digiOutDoesStretch            = 1L << 7,                        /* digitizer can arbitrarily stretch */
  1546.     digiOutDoesShrink            = 1L << 8,                        /* digitizer can arbitrarily shrink */
  1547.     digiOutDoesMask                = 1L << 9,                        /* digitizer can mask to clipping regions */
  1548.     digiOutDoesDouble            = 1L << 11,                        /* digitizer can stretch to exactly double size */
  1549.     digiOutDoesQuad                = 1L << 12,                        /* digitizer can stretch exactly quadruple size */
  1550.     digiOutDoesQuarter            = 1L << 13,                        /* digitizer can shrink to exactly quarter size */
  1551.     digiOutDoesSixteenth        = 1L << 14,                        /* digitizer can shrink to exactly sixteenth size */
  1552.     digiOutDoesRotate            = 1L << 15,                        /* digitizer supports rotate transformations */
  1553.     digiOutDoesHorizFlip        = 1L << 16,                        /* digitizer supports horizontal flips Sx < 0 */
  1554.     digiOutDoesVertFlip            = 1L << 17,                        /* digitizer supports vertical flips Sy < 0 */
  1555.     digiOutDoesSkew                = 1L << 18,                        /* digitizer supports skew = shear,twist, */
  1556.     digiOutDoesBlend            = 1L << 19,
  1557.     digiOutDoesWarp                = 1L << 20,
  1558.     digiOutDoesHW_DMA            = 1L << 21,                        /* digitizer not constrained to local device */
  1559.     digiOutDoesHWPlayThru        = 1L << 22,                        /* digitizer doesn't need time to play thru */
  1560.     digiOutDoesILUT                = 1L << 23,                        /* digitizer does inverse LUT for index modes */
  1561.     digiOutDoesKeyColor            = 1L << 24,                        /* digitizer does key color functions too */
  1562.     digiOutDoesAsyncGrabs        = 1L << 25,                        /* digitizer supports async grabs */
  1563.     digiOutDoesUnreadableScreenBits = 1L << 26,                    /* playthru doesn't generate readable bits on screen*/
  1564.     digiOutDoesCompress            = 1L << 27,                        /* supports alternate output data types */
  1565.     digiOutDoesCompressOnly        = 1L << 28,                        /* can't provide raw frames anywhere */
  1566.     digiOutDoesPlayThruDuringCompress = 1L << 29,                /* digi can do playthru while providing compressed data */
  1567.     digiOutDoesCompressPartiallyVisible = 1L << 30                /* digi doesn't need all bits visible on screen to do hardware compress */
  1568. };
  1569.  
  1570. /* Types */
  1571. typedef ComponentInstance                 VideoDigitizerComponent;
  1572. typedef ComponentResult                 VideoDigitizerError;
  1573.  
  1574. struct DigitizerInfo {
  1575.     short                             vdigType;
  1576.     long                             inputCapabilityFlags;
  1577.     long                             outputCapabilityFlags;
  1578.     long                             inputCurrentFlags;
  1579.     long                             outputCurrentFlags;
  1580.     short                             slot;                        /* temporary for connection purposes */
  1581.     GDHandle                         gdh;                        /* temporary for digitizers that have preferred screen */
  1582.     GDHandle                         maskgdh;                    /* temporary for digitizers that have mask planes */
  1583.     short                             minDestHeight;                /* Smallest resizable height */
  1584.     short                             minDestWidth;                /* Smallest resizable width */
  1585.     short                             maxDestHeight;                /* Largest resizable height */
  1586.     short                             maxDestWidth;                /* Largest resizable height */
  1587.     short                             blendLevels;                /* Number of blend levels supported (2 if 1 bit mask) */
  1588.     long                             reserved;                    /* reserved */
  1589. };
  1590. typedef struct DigitizerInfo            DigitizerInfo;
  1591.  
  1592. struct VdigType {
  1593.     long                             digType;
  1594.     long                             reserved;
  1595. };
  1596. typedef struct VdigType                    VdigType;
  1597.  
  1598. struct VdigTypeList {
  1599.     short                             count;
  1600.     VdigType                         list[1];
  1601. };
  1602. typedef struct VdigTypeList                VdigTypeList;
  1603.  
  1604. struct VdigBufferRec {
  1605.     PixMapHandle                     dest;
  1606.     Point                             location;
  1607.     long                             reserved;
  1608. };
  1609. typedef struct VdigBufferRec            VdigBufferRec;
  1610.  
  1611. struct VdigBufferRecList {
  1612.     short                             count;
  1613.     MatrixRecordPtr                 matrix;
  1614.     RgnHandle                         mask;
  1615.     VdigBufferRec                     list[1];
  1616. };
  1617. typedef struct VdigBufferRecList        VdigBufferRecList;
  1618. typedef VdigBufferRecList *                VdigBufferRecListPtr;
  1619. typedef VdigBufferRecListPtr *            VdigBufferRecListHandle;
  1620. typedef CALLBACK_API( void , VdigIntProcPtr )(long flags, long refcon);
  1621. typedef STACK_UPP_TYPE(VdigIntProcPtr)                             VdigIntUPP;
  1622.  
  1623. struct VDCompressionList {
  1624.     CodecComponent                     codec;
  1625.     CodecType                         cType;
  1626.     Str63                             typeName;
  1627.     Str63                             name;
  1628.     long                             formatFlags;
  1629.     long                             compressFlags;
  1630.     long                             reserved;
  1631. };
  1632. typedef struct VDCompressionList        VDCompressionList;
  1633. typedef VDCompressionList *                VDCompressionListPtr;
  1634. typedef VDCompressionListPtr *            VDCompressionListHandle;
  1635.  
  1636. enum {
  1637.     dmaDepth1                    = 1,
  1638.     dmaDepth2                    = 2,
  1639.     dmaDepth4                    = 4,
  1640.     dmaDepth8                    = 8,
  1641.     dmaDepth16                    = 16,
  1642.     dmaDepth32                    = 32,
  1643.     dmaDepth2Gray                = 64,
  1644.     dmaDepth4Gray                = 128,
  1645.     dmaDepth8Gray                = 256
  1646. };
  1647.  
  1648.  
  1649. enum {
  1650.     kVDIGControlledFrameRate    = -1
  1651. };
  1652.  
  1653.  
  1654. EXTERN_API( VideoDigitizerError )
  1655. VDGetMaxSrcRect                    (VideoDigitizerComponent  ci,
  1656.                                  short                     inputStd,
  1657.                                  Rect *                    maxSrcRect)                            FIVEWORDINLINE(0x2F3C, 0x0006, 0x0001, 0x7000, 0xA82A);
  1658.  
  1659. EXTERN_API( VideoDigitizerError )
  1660. VDGetActiveSrcRect                (VideoDigitizerComponent  ci,
  1661.                                  short                     inputStd,
  1662.                                  Rect *                    activeSrcRect)                        FIVEWORDINLINE(0x2F3C, 0x0006, 0x0002, 0x7000, 0xA82A);
  1663.  
  1664. EXTERN_API( VideoDigitizerError )
  1665. VDSetDigitizerRect                (VideoDigitizerComponent  ci,
  1666.                                  Rect *                    digitizerRect)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
  1667.  
  1668. EXTERN_API( VideoDigitizerError )
  1669. VDGetDigitizerRect                (VideoDigitizerComponent  ci,
  1670.                                  Rect *                    digitizerRect)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  1671.  
  1672. EXTERN_API( VideoDigitizerError )
  1673. VDGetVBlankRect                    (VideoDigitizerComponent  ci,
  1674.                                  short                     inputStd,
  1675.                                  Rect *                    vBlankRect)                            FIVEWORDINLINE(0x2F3C, 0x0006, 0x0005, 0x7000, 0xA82A);
  1676.  
  1677. EXTERN_API( VideoDigitizerError )
  1678. VDGetMaskPixMap                    (VideoDigitizerComponent  ci,
  1679.                                  PixMapHandle             maskPixMap)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0006, 0x7000, 0xA82A);
  1680.  
  1681. EXTERN_API( VideoDigitizerError )
  1682. VDGetPlayThruDestination        (VideoDigitizerComponent  ci,
  1683.                                  PixMapHandle *            dest,
  1684.                                  Rect *                    destRect,
  1685.                                  MatrixRecord *            m,
  1686.                                  RgnHandle *            mask)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0008, 0x7000, 0xA82A);
  1687.  
  1688. EXTERN_API( VideoDigitizerError )
  1689. VDUseThisCLUT                    (VideoDigitizerComponent  ci,
  1690.                                  CTabHandle             colorTableHandle)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0009, 0x7000, 0xA82A);
  1691.  
  1692. EXTERN_API( VideoDigitizerError )
  1693. VDSetInputGammaValue            (VideoDigitizerComponent  ci,
  1694.                                  Fixed                     channel1,
  1695.                                  Fixed                     channel2,
  1696.                                  Fixed                     channel3)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x000A, 0x7000, 0xA82A);
  1697.  
  1698. EXTERN_API( VideoDigitizerError )
  1699. VDGetInputGammaValue            (VideoDigitizerComponent  ci,
  1700.                                  Fixed *                channel1,
  1701.                                  Fixed *                channel2,
  1702.                                  Fixed *                channel3)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x000B, 0x7000, 0xA82A);
  1703.  
  1704. EXTERN_API( VideoDigitizerError )
  1705. VDSetBrightness                    (VideoDigitizerComponent  ci,
  1706.                                  unsigned short *        brightness)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
  1707.  
  1708. EXTERN_API( VideoDigitizerError )
  1709. VDGetBrightness                    (VideoDigitizerComponent  ci,
  1710.                                  unsigned short *        brightness)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
  1711.  
  1712. EXTERN_API( VideoDigitizerError )
  1713. VDSetContrast                    (VideoDigitizerComponent  ci,
  1714.                                  unsigned short *        contrast)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x000E, 0x7000, 0xA82A);
  1715.  
  1716. EXTERN_API( VideoDigitizerError )
  1717. VDSetHue                        (VideoDigitizerComponent  ci,
  1718.                                  unsigned short *        hue)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000F, 0x7000, 0xA82A);
  1719.  
  1720. EXTERN_API( VideoDigitizerError )
  1721. VDSetSharpness                    (VideoDigitizerComponent  ci,
  1722.                                  unsigned short *        sharpness)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0010, 0x7000, 0xA82A);
  1723.  
  1724. EXTERN_API( VideoDigitizerError )
  1725. VDSetSaturation                    (VideoDigitizerComponent  ci,
  1726.                                  unsigned short *        saturation)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0011, 0x7000, 0xA82A);
  1727.  
  1728. EXTERN_API( VideoDigitizerError )
  1729. VDGetContrast                    (VideoDigitizerComponent  ci,
  1730.                                  unsigned short *        contrast)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
  1731.  
  1732. EXTERN_API( VideoDigitizerError )
  1733. VDGetHue                        (VideoDigitizerComponent  ci,
  1734.                                  unsigned short *        hue)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0013, 0x7000, 0xA82A);
  1735.  
  1736. EXTERN_API( VideoDigitizerError )
  1737. VDGetSharpness                    (VideoDigitizerComponent  ci,
  1738.                                  unsigned short *        sharpness)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
  1739.  
  1740. EXTERN_API( VideoDigitizerError )
  1741. VDGetSaturation                    (VideoDigitizerComponent  ci,
  1742.                                  unsigned short *        saturation)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
  1743.  
  1744. EXTERN_API( VideoDigitizerError )
  1745. VDGrabOneFrame                    (VideoDigitizerComponent  ci)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0016, 0x7000, 0xA82A);
  1746.  
  1747. EXTERN_API( VideoDigitizerError )
  1748. VDGetMaxAuxBuffer                (VideoDigitizerComponent  ci,
  1749.                                  PixMapHandle *            pm,
  1750.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0017, 0x7000, 0xA82A);
  1751.  
  1752. EXTERN_API( VideoDigitizerError )
  1753. VDGetDigitizerInfo                (VideoDigitizerComponent  ci,
  1754.                                  DigitizerInfo *        info)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
  1755.  
  1756. EXTERN_API( VideoDigitizerError )
  1757. VDGetCurrentFlags                (VideoDigitizerComponent  ci,
  1758.                                  long *                    inputCurrentFlag,
  1759.                                  long *                    outputCurrentFlag)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x001A, 0x7000, 0xA82A);
  1760.  
  1761. EXTERN_API( VideoDigitizerError )
  1762. VDSetKeyColor                    (VideoDigitizerComponent  ci,
  1763.                                  long                     index)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
  1764.  
  1765. EXTERN_API( VideoDigitizerError )
  1766. VDGetKeyColor                    (VideoDigitizerComponent  ci,
  1767.                                  long *                    index)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001C, 0x7000, 0xA82A);
  1768.  
  1769. EXTERN_API( VideoDigitizerError )
  1770. VDAddKeyColor                    (VideoDigitizerComponent  ci,
  1771.                                  long *                    index)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001D, 0x7000, 0xA82A);
  1772.  
  1773. EXTERN_API( VideoDigitizerError )
  1774. VDGetNextKeyColor                (VideoDigitizerComponent  ci,
  1775.                                  long                     index)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001E, 0x7000, 0xA82A);
  1776.  
  1777. EXTERN_API( VideoDigitizerError )
  1778. VDSetKeyColorRange                (VideoDigitizerComponent  ci,
  1779.                                  RGBColor *                minRGB,
  1780.                                  RGBColor *                maxRGB)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x001F, 0x7000, 0xA82A);
  1781.  
  1782. EXTERN_API( VideoDigitizerError )
  1783. VDGetKeyColorRange                (VideoDigitizerComponent  ci,
  1784.                                  RGBColor *                minRGB,
  1785.                                  RGBColor *                maxRGB)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0020, 0x7000, 0xA82A);
  1786.  
  1787. EXTERN_API( VideoDigitizerError )
  1788. VDSetDigitizerUserInterrupt        (VideoDigitizerComponent  ci,
  1789.                                  long                     flags,
  1790.                                  VdigIntUPP             userInterruptProc,
  1791.                                  long                     refcon)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0021, 0x7000, 0xA82A);
  1792.  
  1793. EXTERN_API( VideoDigitizerError )
  1794. VDSetInputColorSpaceMode        (VideoDigitizerComponent  ci,
  1795.                                  short                     colorSpaceMode)                        FIVEWORDINLINE(0x2F3C, 0x0002, 0x0022, 0x7000, 0xA82A);
  1796.  
  1797. EXTERN_API( VideoDigitizerError )
  1798. VDGetInputColorSpaceMode        (VideoDigitizerComponent  ci,
  1799.                                  short *                colorSpaceMode)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0023, 0x7000, 0xA82A);
  1800.  
  1801. EXTERN_API( VideoDigitizerError )
  1802. VDSetClipState                    (VideoDigitizerComponent  ci,
  1803.                                  short                     clipEnable)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x0024, 0x7000, 0xA82A);
  1804.  
  1805. EXTERN_API( VideoDigitizerError )
  1806. VDGetClipState                    (VideoDigitizerComponent  ci,
  1807.                                  short *                clipEnable)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0025, 0x7000, 0xA82A);
  1808.  
  1809. EXTERN_API( VideoDigitizerError )
  1810. VDSetClipRgn                    (VideoDigitizerComponent  ci,
  1811.                                  RgnHandle                 clipRegion)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0026, 0x7000, 0xA82A);
  1812.  
  1813. EXTERN_API( VideoDigitizerError )
  1814. VDClearClipRgn                    (VideoDigitizerComponent  ci,
  1815.                                  RgnHandle                 clipRegion)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0027, 0x7000, 0xA82A);
  1816.  
  1817. EXTERN_API( VideoDigitizerError )
  1818. VDGetCLUTInUse                    (VideoDigitizerComponent  ci,
  1819.                                  CTabHandle *            colorTableHandle)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0028, 0x7000, 0xA82A);
  1820.  
  1821. EXTERN_API( VideoDigitizerError )
  1822. VDSetPLLFilterType                (VideoDigitizerComponent  ci,
  1823.                                  short                     pllType)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x0029, 0x7000, 0xA82A);
  1824.  
  1825. EXTERN_API( VideoDigitizerError )
  1826. VDGetPLLFilterType                (VideoDigitizerComponent  ci,
  1827.                                  short *                pllType)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x002A, 0x7000, 0xA82A);
  1828.  
  1829. EXTERN_API( VideoDigitizerError )
  1830. VDGetMaskandValue                (VideoDigitizerComponent  ci,
  1831.                                  unsigned short         blendLevel,
  1832.                                  long *                    mask,
  1833.                                  long *                    value)                                FIVEWORDINLINE(0x2F3C, 0x000A, 0x002B, 0x7000, 0xA82A);
  1834.  
  1835. EXTERN_API( VideoDigitizerError )
  1836. VDSetMasterBlendLevel            (VideoDigitizerComponent  ci,
  1837.                                  unsigned short *        blendLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x002C, 0x7000, 0xA82A);
  1838.  
  1839. EXTERN_API( VideoDigitizerError )
  1840. VDSetPlayThruDestination        (VideoDigitizerComponent  ci,
  1841.                                  PixMapHandle             dest,
  1842.                                  RectPtr                 destRect,
  1843.                                  MatrixRecordPtr         m,
  1844.                                  RgnHandle                 mask)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x002D, 0x7000, 0xA82A);
  1845.  
  1846. EXTERN_API( VideoDigitizerError )
  1847. VDSetPlayThruOnOff                (VideoDigitizerComponent  ci,
  1848.                                  short                     state)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x002E, 0x7000, 0xA82A);
  1849.  
  1850. EXTERN_API( VideoDigitizerError )
  1851. VDSetFieldPreference            (VideoDigitizerComponent  ci,
  1852.                                  short                     fieldFlag)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x002F, 0x7000, 0xA82A);
  1853.  
  1854. EXTERN_API( VideoDigitizerError )
  1855. VDGetFieldPreference            (VideoDigitizerComponent  ci,
  1856.                                  short *                fieldFlag)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0030, 0x7000, 0xA82A);
  1857.  
  1858. EXTERN_API( VideoDigitizerError )
  1859. VDPreflightDestination            (VideoDigitizerComponent  ci,
  1860.                                  Rect *                    digitizerRect,
  1861.                                  PixMap **                dest,
  1862.                                  RectPtr                 destRect,
  1863.                                  MatrixRecordPtr         m)                                    FIVEWORDINLINE(0x2F3C, 0x0010, 0x0032, 0x7000, 0xA82A);
  1864.  
  1865. EXTERN_API( VideoDigitizerError )
  1866. VDPreflightGlobalRect            (VideoDigitizerComponent  ci,
  1867.                                  GrafPtr                 theWindow,
  1868.                                  Rect *                    globalRect)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0033, 0x7000, 0xA82A);
  1869.  
  1870. EXTERN_API( VideoDigitizerError )
  1871. VDSetPlayThruGlobalRect            (VideoDigitizerComponent  ci,
  1872.                                  GrafPtr                 theWindow,
  1873.                                  Rect *                    globalRect)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0034, 0x7000, 0xA82A);
  1874.  
  1875. EXTERN_API( VideoDigitizerError )
  1876. VDSetInputGammaRecord            (VideoDigitizerComponent  ci,
  1877.                                  VDGamRecPtr             inputGammaPtr)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0035, 0x7000, 0xA82A);
  1878.  
  1879. EXTERN_API( VideoDigitizerError )
  1880. VDGetInputGammaRecord            (VideoDigitizerComponent  ci,
  1881.                                  VDGamRecPtr *            inputGammaPtr)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0036, 0x7000, 0xA82A);
  1882.  
  1883. EXTERN_API( VideoDigitizerError )
  1884. VDSetBlackLevelValue            (VideoDigitizerComponent  ci,
  1885.                                  unsigned short *        blackLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0037, 0x7000, 0xA82A);
  1886.  
  1887. EXTERN_API( VideoDigitizerError )
  1888. VDGetBlackLevelValue            (VideoDigitizerComponent  ci,
  1889.                                  unsigned short *        blackLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0038, 0x7000, 0xA82A);
  1890.  
  1891. EXTERN_API( VideoDigitizerError )
  1892. VDSetWhiteLevelValue            (VideoDigitizerComponent  ci,
  1893.                                  unsigned short *        whiteLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0039, 0x7000, 0xA82A);
  1894.  
  1895. EXTERN_API( VideoDigitizerError )
  1896. VDGetWhiteLevelValue            (VideoDigitizerComponent  ci,
  1897.                                  unsigned short *        whiteLevel)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x003A, 0x7000, 0xA82A);
  1898.  
  1899. EXTERN_API( VideoDigitizerError )
  1900. VDGetVideoDefaults                (VideoDigitizerComponent  ci,
  1901.                                  unsigned short *        blackLevel,
  1902.                                  unsigned short *        whiteLevel,
  1903.                                  unsigned short *        brightness,
  1904.                                  unsigned short *        hue,
  1905.                                  unsigned short *        saturation,
  1906.                                  unsigned short *        contrast,
  1907.                                  unsigned short *        sharpness)                            FIVEWORDINLINE(0x2F3C, 0x001C, 0x003B, 0x7000, 0xA82A);
  1908.  
  1909. EXTERN_API( VideoDigitizerError )
  1910. VDGetNumberOfInputs                (VideoDigitizerComponent  ci,
  1911.                                  short *                inputs)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x003C, 0x7000, 0xA82A);
  1912.  
  1913. EXTERN_API( VideoDigitizerError )
  1914. VDGetInputFormat                (VideoDigitizerComponent  ci,
  1915.                                  short                     input,
  1916.                                  short *                format)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x003D, 0x7000, 0xA82A);
  1917.  
  1918. EXTERN_API( VideoDigitizerError )
  1919. VDSetInput                        (VideoDigitizerComponent  ci,
  1920.                                  short                     input)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x003E, 0x7000, 0xA82A);
  1921.  
  1922. EXTERN_API( VideoDigitizerError )
  1923. VDGetInput                        (VideoDigitizerComponent  ci,
  1924.                                  short *                input)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x003F, 0x7000, 0xA82A);
  1925.  
  1926. EXTERN_API( VideoDigitizerError )
  1927. VDSetInputStandard                (VideoDigitizerComponent  ci,
  1928.                                  short                     inputStandard)                        FIVEWORDINLINE(0x2F3C, 0x0002, 0x0040, 0x7000, 0xA82A);
  1929.  
  1930. EXTERN_API( VideoDigitizerError )
  1931. VDSetupBuffers                    (VideoDigitizerComponent  ci,
  1932.                                  VdigBufferRecListHandle  bufferList)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0041, 0x7000, 0xA82A);
  1933.  
  1934. EXTERN_API( VideoDigitizerError )
  1935. VDGrabOneFrameAsync                (VideoDigitizerComponent  ci,
  1936.                                  short                     buffer)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0042, 0x7000, 0xA82A);
  1937.  
  1938. EXTERN_API( VideoDigitizerError )
  1939. VDDone                            (VideoDigitizerComponent  ci,
  1940.                                  short                     buffer)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0043, 0x7000, 0xA82A);
  1941.  
  1942. EXTERN_API( VideoDigitizerError )
  1943. VDSetCompression                (VideoDigitizerComponent  ci,
  1944.                                  OSType                 compressType,
  1945.                                  short                     depth,
  1946.                                  Rect *                    bounds,
  1947.                                  CodecQ                 spatialQuality,
  1948.                                  CodecQ                 temporalQuality,
  1949.                                  long                     keyFrameRate)                        FIVEWORDINLINE(0x2F3C, 0x0016, 0x0044, 0x7000, 0xA82A);
  1950.  
  1951. EXTERN_API( VideoDigitizerError )
  1952. VDCompressOneFrameAsync            (VideoDigitizerComponent  ci)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0045, 0x7000, 0xA82A);
  1953.  
  1954. EXTERN_API( VideoDigitizerError )
  1955. VDCompressDone                    (VideoDigitizerComponent  ci,
  1956.                                  Boolean *                done,
  1957.                                  Ptr *                    theData,
  1958.                                  long *                    dataSize,
  1959.                                  UInt8 *                similarity,
  1960.                                  TimeRecord *            t)                                    FIVEWORDINLINE(0x2F3C, 0x0014, 0x0046, 0x7000, 0xA82A);
  1961.  
  1962. EXTERN_API( VideoDigitizerError )
  1963. VDReleaseCompressBuffer            (VideoDigitizerComponent  ci,
  1964.                                  Ptr                     bufferAddr)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0047, 0x7000, 0xA82A);
  1965.  
  1966. EXTERN_API( VideoDigitizerError )
  1967. VDGetImageDescription            (VideoDigitizerComponent  ci,
  1968.                                  ImageDescriptionHandle  desc)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0048, 0x7000, 0xA82A);
  1969.  
  1970. EXTERN_API( VideoDigitizerError )
  1971. VDResetCompressSequence            (VideoDigitizerComponent  ci)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0049, 0x7000, 0xA82A);
  1972.  
  1973. EXTERN_API( VideoDigitizerError )
  1974. VDSetCompressionOnOff            (VideoDigitizerComponent  ci,
  1975.                                  Boolean                 state)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x004A, 0x7000, 0xA82A);
  1976.  
  1977. EXTERN_API( VideoDigitizerError )
  1978. VDGetCompressionTypes            (VideoDigitizerComponent  ci,
  1979.                                  VDCompressionListHandle  h)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x004B, 0x7000, 0xA82A);
  1980.  
  1981. EXTERN_API( VideoDigitizerError )
  1982. VDSetTimeBase                    (VideoDigitizerComponent  ci,
  1983.                                  TimeBase                 t)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x004C, 0x7000, 0xA82A);
  1984.  
  1985. EXTERN_API( VideoDigitizerError )
  1986. VDSetFrameRate                    (VideoDigitizerComponent  ci,
  1987.                                  Fixed                     framesPerSecond)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x004D, 0x7000, 0xA82A);
  1988.  
  1989. EXTERN_API( VideoDigitizerError )
  1990. VDGetDataRate                    (VideoDigitizerComponent  ci,
  1991.                                  long *                    milliSecPerFrame,
  1992.                                  Fixed *                framesPerSecond,
  1993.                                  long *                    bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x004E, 0x7000, 0xA82A);
  1994.  
  1995. EXTERN_API( VideoDigitizerError )
  1996. VDGetSoundInputDriver            (VideoDigitizerComponent  ci,
  1997.                                  Str255                 soundDriverName)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x004F, 0x7000, 0xA82A);
  1998.  
  1999. EXTERN_API( VideoDigitizerError )
  2000. VDGetDMADepths                    (VideoDigitizerComponent  ci,
  2001.                                  long *                    depthArray,
  2002.                                  long *                    preferredDepth)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0050, 0x7000, 0xA82A);
  2003.  
  2004. EXTERN_API( VideoDigitizerError )
  2005. VDGetPreferredTimeScale            (VideoDigitizerComponent  ci,
  2006.                                  TimeScale *            preferred)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0051, 0x7000, 0xA82A);
  2007.  
  2008. EXTERN_API( VideoDigitizerError )
  2009. VDReleaseAsyncBuffers            (VideoDigitizerComponent  ci)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0052, 0x7000, 0xA82A);
  2010.  
  2011. /* 83 is reserved for compatibility reasons */
  2012. EXTERN_API( VideoDigitizerError )
  2013. VDSetDataRate                    (VideoDigitizerComponent  ci,
  2014.                                  long                     bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0054, 0x7000, 0xA82A);
  2015.  
  2016. EXTERN_API( VideoDigitizerError )
  2017. VDGetTimeCode                    (VideoDigitizerComponent  ci,
  2018.                                  TimeRecord *            atTime,
  2019.                                  void *                    timeCodeFormat,
  2020.                                  void *                    timeCodeTime)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x0055, 0x7000, 0xA82A);
  2021.  
  2022. EXTERN_API( VideoDigitizerError )
  2023. VDUseSafeBuffers                (VideoDigitizerComponent  ci,
  2024.                                  Boolean                 useSafeBuffers)                        FIVEWORDINLINE(0x2F3C, 0x0002, 0x0056, 0x7000, 0xA82A);
  2025.  
  2026. EXTERN_API( VideoDigitizerError )
  2027. VDGetSoundInputSource            (VideoDigitizerComponent  ci,
  2028.                                  long                     videoInput,
  2029.                                  long *                    soundInput)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0057, 0x7000, 0xA82A);
  2030.  
  2031. EXTERN_API( VideoDigitizerError )
  2032. VDGetCompressionTime            (VideoDigitizerComponent  ci,
  2033.                                  OSType                 compressionType,
  2034.                                  short                     depth,
  2035.                                  Rect *                    srcRect,
  2036.                                  CodecQ *                spatialQuality,
  2037.                                  CodecQ *                temporalQuality,
  2038.                                  unsigned long *        compressTime)                        FIVEWORDINLINE(0x2F3C, 0x0016, 0x0058, 0x7000, 0xA82A);
  2039.  
  2040. EXTERN_API( VideoDigitizerError )
  2041. VDSetPreferredPacketSize        (VideoDigitizerComponent  ci,
  2042.                                  long                     preferredPacketSizeInBytes)            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0059, 0x7000, 0xA82A);
  2043.  
  2044. EXTERN_API( VideoDigitizerError )
  2045. VDSetPreferredImageDimensions    (VideoDigitizerComponent  ci,
  2046.                                  long                     width,
  2047.                                  long                     height)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x005A, 0x7000, 0xA82A);
  2048.  
  2049. EXTERN_API( VideoDigitizerError )
  2050. VDGetPreferredImageDimensions    (VideoDigitizerComponent  ci,
  2051.                                  long *                    width,
  2052.                                  long *                    height)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x005B, 0x7000, 0xA82A);
  2053.  
  2054. EXTERN_API( VideoDigitizerError )
  2055. VDGetInputName                    (VideoDigitizerComponent  ci,
  2056.                                  long                     videoInput,
  2057.                                  Str255                 name)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x005C, 0x7000, 0xA82A);
  2058.  
  2059.  
  2060.  
  2061. /*
  2062.     General Sequence Grab stuff
  2063. */
  2064.  
  2065. typedef ComponentInstance                 SeqGrabComponent;
  2066. typedef ComponentInstance                 SGChannel;
  2067.  
  2068. enum {
  2069.     SeqGrabComponentType        = FOUR_CHAR_CODE('barg'),
  2070.     SeqGrabChannelType            = FOUR_CHAR_CODE('sgch'),
  2071.     SeqGrabPanelType            = FOUR_CHAR_CODE('sgpn'),
  2072.     SeqGrabCompressionPanelType    = FOUR_CHAR_CODE('cmpr'),
  2073.     SeqGrabSourcePanelType        = FOUR_CHAR_CODE('sour')
  2074. };
  2075.  
  2076.  
  2077. enum {
  2078.     seqGrabToDisk                = 1,
  2079.     seqGrabToMemory                = 2,
  2080.     seqGrabDontUseTempMemory    = 4,
  2081.     seqGrabAppendToFile            = 8,
  2082.     seqGrabDontAddMovieResource    = 16,
  2083.     seqGrabDontMakeMovie        = 32,
  2084.     seqGrabPreExtendFile        = 64,
  2085.     seqGrabDataProcIsInterruptSafe = 128,
  2086.     seqGrabDataProcDoesOverlappingReads = 256
  2087. };
  2088.  
  2089. typedef unsigned long                     SeqGrabDataOutputEnum;
  2090.  
  2091. enum {
  2092.     seqGrabRecord                = 1,
  2093.     seqGrabPreview                = 2,
  2094.     seqGrabPlayDuringRecord        = 4
  2095. };
  2096.  
  2097. typedef unsigned long                     SeqGrabUsageEnum;
  2098.  
  2099. enum {
  2100.     seqGrabHasBounds            = 1,
  2101.     seqGrabHasVolume            = 2,
  2102.     seqGrabHasDiscreteSamples    = 4
  2103. };
  2104.  
  2105. typedef unsigned long                     SeqGrabChannelInfoEnum;
  2106.  
  2107. struct SGOutputRecord {
  2108.     long                             data[1];
  2109. };
  2110. typedef struct SGOutputRecord            SGOutputRecord;
  2111.  
  2112. typedef SGOutputRecord *                SGOutput;
  2113.  
  2114. struct SeqGrabFrameInfo {
  2115.     long                             frameOffset;
  2116.     long                             frameTime;
  2117.     long                             frameSize;
  2118.     SGChannel                         frameChannel;
  2119.     long                             frameRefCon;
  2120. };
  2121. typedef struct SeqGrabFrameInfo            SeqGrabFrameInfo;
  2122. typedef SeqGrabFrameInfo *                SeqGrabFrameInfoPtr;
  2123.  
  2124. struct SeqGrabExtendedFrameInfo {
  2125.     wide                             frameOffset;
  2126.     long                             frameTime;
  2127.     long                             frameSize;
  2128.     SGChannel                         frameChannel;
  2129.     long                             frameRefCon;
  2130.     SGOutput                         frameOutput;
  2131. };
  2132. typedef struct SeqGrabExtendedFrameInfo    SeqGrabExtendedFrameInfo;
  2133. typedef SeqGrabExtendedFrameInfo *        SeqGrabExtendedFrameInfoPtr;
  2134.  
  2135. enum {
  2136.     grabPictOffScreen            = 1,
  2137.     grabPictIgnoreClip            = 2,
  2138.     grabPictCurrentImage        = 4
  2139. };
  2140.  
  2141.  
  2142. enum {
  2143.     sgFlagControlledGrab        = (1 << 0)
  2144. };
  2145.  
  2146. typedef CALLBACK_API( OSErr , SGDataProcPtr )(SGChannel c, Ptr p, long len, long *offset, long chRefCon, TimeValue time, short writeType, long refCon);
  2147. typedef STACK_UPP_TYPE(SGDataProcPtr)                             SGDataUPP;
  2148.  
  2149. struct SGDeviceName {
  2150.     Str63                             name;
  2151.     Handle                             icon;
  2152.     long                             flags;
  2153.     long                             refCon;
  2154.     long                             reserved;                    /* zero*/
  2155. };
  2156. typedef struct SGDeviceName                SGDeviceName;
  2157.  
  2158. enum {
  2159.     sgDeviceNameFlagDeviceUnavailable = (1 << 0)
  2160. };
  2161.  
  2162.  
  2163. struct SGDeviceListRecord {
  2164.     short                             count;
  2165.     short                             selectedIndex;
  2166.     long                             reserved;                    /* zero*/
  2167.     SGDeviceName                     entry[1];
  2168. };
  2169. typedef struct SGDeviceListRecord        SGDeviceListRecord;
  2170.  
  2171. typedef SGDeviceListRecord *            SGDeviceListPtr;
  2172. typedef SGDeviceListPtr *                SGDeviceList;
  2173.  
  2174. enum {
  2175.     sgDeviceListWithIcons        = (1 << 0),
  2176.     sgDeviceListDontCheckAvailability = (1 << 1)
  2177. };
  2178.  
  2179.  
  2180. enum {
  2181.     seqGrabWriteAppend            = 0,
  2182.     seqGrabWriteReserve            = 1,
  2183.     seqGrabWriteFill            = 2
  2184. };
  2185.  
  2186.  
  2187. enum {
  2188.     seqGrabUnpause                = 0,
  2189.     seqGrabPause                = 1,
  2190.     seqGrabPauseForMenu            = 3
  2191. };
  2192.  
  2193.  
  2194. enum {
  2195.     channelFlagDontOpenResFile    = 2,
  2196.     channelFlagHasDependency    = 4
  2197. };
  2198.  
  2199. typedef CALLBACK_API( Boolean , SGModalFilterProcPtr )(DialogPtr theDialog, const EventRecord *theEvent, short *itemHit, long refCon);
  2200. typedef STACK_UPP_TYPE(SGModalFilterProcPtr)                     SGModalFilterUPP;
  2201.  
  2202. enum {
  2203.     sgPanelFlagForPanel            = 1
  2204. };
  2205.  
  2206.  
  2207. enum {
  2208.     seqGrabSettingsPreviewOnly    = 1
  2209. };
  2210.  
  2211.  
  2212. enum {
  2213.     channelPlayNormal            = 0,
  2214.     channelPlayFast                = 1,
  2215.     channelPlayHighQuality        = 2,
  2216.     channelPlayAllData            = 4
  2217. };
  2218.  
  2219.  
  2220. EXTERN_API( ComponentResult )
  2221. SGInitialize                    (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0001, 0x7000, 0xA82A);
  2222.  
  2223. EXTERN_API( ComponentResult )
  2224. SGSetDataOutput                    (SeqGrabComponent         s,
  2225.                                  const FSSpec *            movieFile,
  2226.                                  long                     whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  2227.  
  2228. EXTERN_API( ComponentResult )
  2229. SGGetDataOutput                    (SeqGrabComponent         s,
  2230.                                  FSSpec *                movieFile,
  2231.                                  long *                    whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0003, 0x7000, 0xA82A);
  2232.  
  2233. EXTERN_API( ComponentResult )
  2234. SGSetGWorld                        (SeqGrabComponent         s,
  2235.                                  CGrafPtr                 gp,
  2236.                                  GDHandle                 gd)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0004, 0x7000, 0xA82A);
  2237.  
  2238. EXTERN_API( ComponentResult )
  2239. SGGetGWorld                        (SeqGrabComponent         s,
  2240.                                  CGrafPtr *                gp,
  2241.                                  GDHandle *                gd)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0005, 0x7000, 0xA82A);
  2242.  
  2243. EXTERN_API( ComponentResult )
  2244. SGNewChannel                    (SeqGrabComponent         s,
  2245.                                  OSType                 channelType,
  2246.                                  SGChannel *            ref)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0006, 0x7000, 0xA82A);
  2247.  
  2248. EXTERN_API( ComponentResult )
  2249. SGDisposeChannel                (SeqGrabComponent         s,
  2250.                                  SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  2251.  
  2252. EXTERN_API( ComponentResult )
  2253. SGStartPreview                    (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0010, 0x7000, 0xA82A);
  2254.  
  2255. EXTERN_API( ComponentResult )
  2256. SGStartRecord                    (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0011, 0x7000, 0xA82A);
  2257.  
  2258. EXTERN_API( ComponentResult )
  2259. SGIdle                            (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0012, 0x7000, 0xA82A);
  2260.  
  2261. EXTERN_API( ComponentResult )
  2262. SGStop                            (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0013, 0x7000, 0xA82A);
  2263.  
  2264. EXTERN_API( ComponentResult )
  2265. SGPause                            (SeqGrabComponent         s,
  2266.                                  Byte                     pause)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0014, 0x7000, 0xA82A);
  2267.  
  2268. EXTERN_API( ComponentResult )
  2269. SGPrepare                        (SeqGrabComponent         s,
  2270.                                  Boolean                 prepareForPreview,
  2271.                                  Boolean                 prepareForRecord)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
  2272.  
  2273. EXTERN_API( ComponentResult )
  2274. SGRelease                        (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0016, 0x7000, 0xA82A);
  2275.  
  2276. EXTERN_API( Movie )
  2277. SGGetMovie                        (SeqGrabComponent         s)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0017, 0x7000, 0xA82A);
  2278.  
  2279. EXTERN_API( ComponentResult )
  2280. SGSetMaximumRecordTime            (SeqGrabComponent         s,
  2281.                                  unsigned long             ticks)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0018, 0x7000, 0xA82A);
  2282.  
  2283. EXTERN_API( ComponentResult )
  2284. SGGetMaximumRecordTime            (SeqGrabComponent         s,
  2285.                                  unsigned long *        ticks)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
  2286.  
  2287. EXTERN_API( ComponentResult )
  2288. SGGetStorageSpaceRemaining        (SeqGrabComponent         s,
  2289.                                  unsigned long *        bytes)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
  2290.  
  2291. EXTERN_API( ComponentResult )
  2292. SGGetTimeRemaining                (SeqGrabComponent         s,
  2293.                                  long *                    ticksLeft)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001B, 0x7000, 0xA82A);
  2294.  
  2295. EXTERN_API( ComponentResult )
  2296. SGGrabPict                        (SeqGrabComponent         s,
  2297.                                  PicHandle *            p,
  2298.                                  const Rect *            bounds,
  2299.                                  short                     offscreenDepth,
  2300.                                  long                     grabPictFlags)                        FIVEWORDINLINE(0x2F3C, 0x000E, 0x001C, 0x7000, 0xA82A);
  2301.  
  2302. EXTERN_API( ComponentResult )
  2303. SGGetLastMovieResID                (SeqGrabComponent         s,
  2304.                                  short *                resID)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x001D, 0x7000, 0xA82A);
  2305.  
  2306. EXTERN_API( ComponentResult )
  2307. SGSetFlags                        (SeqGrabComponent         s,
  2308.                                  long                     sgFlags)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001E, 0x7000, 0xA82A);
  2309.  
  2310. EXTERN_API( ComponentResult )
  2311. SGGetFlags                        (SeqGrabComponent         s,
  2312.                                  long *                    sgFlags)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x001F, 0x7000, 0xA82A);
  2313.  
  2314. EXTERN_API( ComponentResult )
  2315. SGSetDataProc                    (SeqGrabComponent         s,
  2316.                                  SGDataUPP                 proc,
  2317.                                  long                     refCon)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0020, 0x7000, 0xA82A);
  2318.  
  2319. EXTERN_API( ComponentResult )
  2320. SGNewChannelFromComponent        (SeqGrabComponent         s,
  2321.                                  SGChannel *            newChannel,
  2322.                                  Component                 sgChannelComponent)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0021, 0x7000, 0xA82A);
  2323.  
  2324. EXTERN_API( ComponentResult )
  2325. SGDisposeDeviceList                (SeqGrabComponent         s,
  2326.                                  SGDeviceList             list)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0022, 0x7000, 0xA82A);
  2327.  
  2328. EXTERN_API( ComponentResult )
  2329. SGAppendDeviceListToMenu        (SeqGrabComponent         s,
  2330.                                  SGDeviceList             list,
  2331.                                  MenuHandle             mh)                                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0023, 0x7000, 0xA82A);
  2332.  
  2333. EXTERN_API( ComponentResult )
  2334. SGSetSettings                    (SeqGrabComponent         s,
  2335.                                  UserData                 ud,
  2336.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0024, 0x7000, 0xA82A);
  2337.  
  2338. EXTERN_API( ComponentResult )
  2339. SGGetSettings                    (SeqGrabComponent         s,
  2340.                                  UserData *                ud,
  2341.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0025, 0x7000, 0xA82A);
  2342.  
  2343. EXTERN_API( ComponentResult )
  2344. SGGetIndChannel                    (SeqGrabComponent         s,
  2345.                                  short                     index,
  2346.                                  SGChannel *            ref,
  2347.                                  OSType *                chanType)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0026, 0x7000, 0xA82A);
  2348.  
  2349. EXTERN_API( ComponentResult )
  2350. SGUpdate                        (SeqGrabComponent         s,
  2351.                                  RgnHandle                 updateRgn)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0027, 0x7000, 0xA82A);
  2352.  
  2353. EXTERN_API( ComponentResult )
  2354. SGGetPause                        (SeqGrabComponent         s,
  2355.                                  Byte *                    paused)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0028, 0x7000, 0xA82A);
  2356.  
  2357. typedef const Component *                ConstComponentListPtr;
  2358. EXTERN_API( ComponentResult )
  2359. SGSettingsDialog                (SeqGrabComponent         s,
  2360.                                  SGChannel                 c,
  2361.                                  short                     numPanels,
  2362.                                  ConstComponentListPtr     panelList,
  2363.                                  long                     flags,
  2364.                                  SGModalFilterUPP         proc,
  2365.                                  long                     procRefNum)                            FIVEWORDINLINE(0x2F3C, 0x0016, 0x0029, 0x7000, 0xA82A);
  2366.  
  2367. EXTERN_API( ComponentResult )
  2368. SGGetAlignmentProc                (SeqGrabComponent         s,
  2369.                                  ICMAlignmentProcRecordPtr  alignmentProc)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x002A, 0x7000, 0xA82A);
  2370.  
  2371. EXTERN_API( ComponentResult )
  2372. SGSetChannelSettings            (SeqGrabComponent         s,
  2373.                                  SGChannel                 c,
  2374.                                  UserData                 ud,
  2375.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x002B, 0x7000, 0xA82A);
  2376.  
  2377. EXTERN_API( ComponentResult )
  2378. SGGetChannelSettings            (SeqGrabComponent         s,
  2379.                                  SGChannel                 c,
  2380.                                  UserData *                ud,
  2381.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x002C, 0x7000, 0xA82A);
  2382.  
  2383. EXTERN_API( ComponentResult )
  2384. SGGetMode                        (SeqGrabComponent         s,
  2385.                                  Boolean *                previewMode,
  2386.                                  Boolean *                recordMode)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x002D, 0x7000, 0xA82A);
  2387.  
  2388. EXTERN_API( ComponentResult )
  2389. SGSetDataRef                    (SeqGrabComponent         s,
  2390.                                  Handle                 dataRef,
  2391.                                  OSType                 dataRefType,
  2392.                                  long                     whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x002E, 0x7000, 0xA82A);
  2393.  
  2394. EXTERN_API( ComponentResult )
  2395. SGGetDataRef                    (SeqGrabComponent         s,
  2396.                                  Handle *                dataRef,
  2397.                                  OSType *                dataRefType,
  2398.                                  long *                    whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x002F, 0x7000, 0xA82A);
  2399.  
  2400. EXTERN_API( ComponentResult )
  2401. SGNewOutput                        (SeqGrabComponent         s,
  2402.                                  Handle                 dataRef,
  2403.                                  OSType                 dataRefType,
  2404.                                  long                     whereFlags,
  2405.                                  SGOutput *                sgOut)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0030, 0x7000, 0xA82A);
  2406.  
  2407. EXTERN_API( ComponentResult )
  2408. SGDisposeOutput                    (SeqGrabComponent         s,
  2409.                                  SGOutput                 sgOut)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0031, 0x7000, 0xA82A);
  2410.  
  2411. EXTERN_API( ComponentResult )
  2412. SGSetOutputFlags                (SeqGrabComponent         s,
  2413.                                  SGOutput                 sgOut,
  2414.                                  long                     whereFlags)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0032, 0x7000, 0xA82A);
  2415.  
  2416. EXTERN_API( ComponentResult )
  2417. SGSetChannelOutput                (SeqGrabComponent         s,
  2418.                                  SGChannel                 c,
  2419.                                  SGOutput                 sgOut)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0033, 0x7000, 0xA82A);
  2420.  
  2421. EXTERN_API( ComponentResult )
  2422. SGGetDataOutputStorageSpaceRemaining (SeqGrabComponent     s,
  2423.                                  SGOutput                 sgOut,
  2424.                                  unsigned long *        space)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x0034, 0x7000, 0xA82A);
  2425.  
  2426. EXTERN_API( ComponentResult )
  2427. SGHandleUpdateEvent                (SeqGrabComponent         s,
  2428.                                  const EventRecord *    event,
  2429.                                  Boolean *                handled)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0035, 0x7000, 0xA82A);
  2430.  
  2431. EXTERN_API( ComponentResult )
  2432. SGSetOutputNextOutput            (SeqGrabComponent         s,
  2433.                                  SGOutput                 sgOut,
  2434.                                  SGOutput                 nextOut)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0036, 0x7000, 0xA82A);
  2435.  
  2436. EXTERN_API( ComponentResult )
  2437. SGGetOutputNextOutput            (SeqGrabComponent         s,
  2438.                                  SGOutput                 sgOut,
  2439.                                  SGOutput *                nextOut)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0037, 0x7000, 0xA82A);
  2440.  
  2441. EXTERN_API( ComponentResult )
  2442. SGSetOutputMaximumOffset        (SeqGrabComponent         s,
  2443.                                  SGOutput                 sgOut,
  2444.                                  const wide *            maxOffset)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0038, 0x7000, 0xA82A);
  2445.  
  2446. EXTERN_API( ComponentResult )
  2447. SGGetOutputMaximumOffset        (SeqGrabComponent         s,
  2448.                                  SGOutput                 sgOut,
  2449.                                  wide *                    maxOffset)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0039, 0x7000, 0xA82A);
  2450.  
  2451. EXTERN_API( ComponentResult )
  2452. SGGetOutputDataReference        (SeqGrabComponent         s,
  2453.                                  SGOutput                 sgOut,
  2454.                                  Handle *                dataRef,
  2455.                                  OSType *                dataRefType)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x003A, 0x7000, 0xA82A);
  2456.  
  2457. EXTERN_API( ComponentResult )
  2458. SGWriteExtendedMovieData        (SeqGrabComponent         s,
  2459.                                  SGChannel                 c,
  2460.                                  Ptr                     p,
  2461.                                  long                     len,
  2462.                                  wide *                    offset,
  2463.                                  SGOutput *                sgOut)                                FIVEWORDINLINE(0x2F3C, 0x0014, 0x003B, 0x7000, 0xA82A);
  2464.  
  2465. /*
  2466.     calls from Channel to seqGrab
  2467. */
  2468. EXTERN_API( ComponentResult )
  2469. SGWriteMovieData                (SeqGrabComponent         s,
  2470.                                  SGChannel                 c,
  2471.                                  Ptr                     p,
  2472.                                  long                     len,
  2473.                                  long *                    offset)                                FIVEWORDINLINE(0x2F3C, 0x0010, 0x0100, 0x7000, 0xA82A);
  2474.  
  2475. EXTERN_API( ComponentResult )
  2476. SGAddFrameReference                (SeqGrabComponent         s,
  2477.                                  SeqGrabFrameInfoPtr     frameInfo)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  2478.  
  2479. EXTERN_API( ComponentResult )
  2480. SGGetNextFrameReference            (SeqGrabComponent         s,
  2481.                                  SeqGrabFrameInfoPtr     frameInfo,
  2482.                                  TimeValue *            frameDuration,
  2483.                                  long *                    frameNumber)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x0102, 0x7000, 0xA82A);
  2484.  
  2485. EXTERN_API( ComponentResult )
  2486. SGGetTimeBase                    (SeqGrabComponent         s,
  2487.                                  TimeBase *                tb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  2488.  
  2489. EXTERN_API( ComponentResult )
  2490. SGSortDeviceList                (SeqGrabComponent         s,
  2491.                                  SGDeviceList             list)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0104, 0x7000, 0xA82A);
  2492.  
  2493. EXTERN_API( ComponentResult )
  2494. SGAddMovieData                    (SeqGrabComponent         s,
  2495.                                  SGChannel                 c,
  2496.                                  Ptr                     p,
  2497.                                  long                     len,
  2498.                                  long *                    offset,
  2499.                                  long                     chRefCon,
  2500.                                  TimeValue                 time,
  2501.                                  short                     writeType)                            FIVEWORDINLINE(0x2F3C, 0x001A, 0x0105, 0x7000, 0xA82A);
  2502.  
  2503. EXTERN_API( ComponentResult )
  2504. SGChangedSource                    (SeqGrabComponent         s,
  2505.                                  SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0106, 0x7000, 0xA82A);
  2506.  
  2507. EXTERN_API( ComponentResult )
  2508. SGAddExtendedFrameReference        (SeqGrabComponent         s,
  2509.                                  SeqGrabExtendedFrameInfoPtr  frameInfo)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0107, 0x7000, 0xA82A);
  2510.  
  2511. EXTERN_API( ComponentResult )
  2512. SGGetNextExtendedFrameReference    (SeqGrabComponent         s,
  2513.                                  SeqGrabExtendedFrameInfoPtr  frameInfo,
  2514.                                  TimeValue *            frameDuration,
  2515.                                  long *                    frameNumber)                        FIVEWORDINLINE(0x2F3C, 0x000C, 0x0108, 0x7000, 0xA82A);
  2516.  
  2517. EXTERN_API( ComponentResult )
  2518. SGAddExtendedMovieData            (SeqGrabComponent         s,
  2519.                                  SGChannel                 c,
  2520.                                  Ptr                     p,
  2521.                                  long                     len,
  2522.                                  wide *                    offset,
  2523.                                  long                     chRefCon,
  2524.                                  TimeValue                 time,
  2525.                                  short                     writeType,
  2526.                                  SGOutput *                whichOutput)                        FIVEWORDINLINE(0x2F3C, 0x001E, 0x0109, 0x7000, 0xA82A);
  2527.  
  2528. EXTERN_API( ComponentResult )
  2529. SGAddOutputDataRefToMedia        (SeqGrabComponent         s,
  2530.                                  SGOutput                 sgOut,
  2531.                                  Media                     theMedia,
  2532.                                  SampleDescriptionHandle  desc)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x010A, 0x7000, 0xA82A);
  2533.  
  2534.  
  2535.  
  2536. /*** Sequence Grab CHANNEL Component Stuff ***/
  2537.  
  2538. EXTERN_API( ComponentResult )
  2539. SGSetChannelUsage                (SGChannel                 c,
  2540.                                  long                     usage)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0080, 0x7000, 0xA82A);
  2541.  
  2542. EXTERN_API( ComponentResult )
  2543. SGGetChannelUsage                (SGChannel                 c,
  2544.                                  long *                    usage)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0081, 0x7000, 0xA82A);
  2545.  
  2546. EXTERN_API( ComponentResult )
  2547. SGSetChannelBounds                (SGChannel                 c,
  2548.                                  const Rect *            bounds)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0082, 0x7000, 0xA82A);
  2549.  
  2550. EXTERN_API( ComponentResult )
  2551. SGGetChannelBounds                (SGChannel                 c,
  2552.                                  Rect *                    bounds)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0083, 0x7000, 0xA82A);
  2553.  
  2554. EXTERN_API( ComponentResult )
  2555. SGSetChannelVolume                (SGChannel                 c,
  2556.                                  short                     volume)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0084, 0x7000, 0xA82A);
  2557.  
  2558. EXTERN_API( ComponentResult )
  2559. SGGetChannelVolume                (SGChannel                 c,
  2560.                                  short *                volume)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0085, 0x7000, 0xA82A);
  2561.  
  2562. EXTERN_API( ComponentResult )
  2563. SGGetChannelInfo                (SGChannel                 c,
  2564.                                  long *                    channelInfo)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0086, 0x7000, 0xA82A);
  2565.  
  2566. EXTERN_API( ComponentResult )
  2567. SGSetChannelPlayFlags            (SGChannel                 c,
  2568.                                  long                     playFlags)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0087, 0x7000, 0xA82A);
  2569.  
  2570. EXTERN_API( ComponentResult )
  2571. SGGetChannelPlayFlags            (SGChannel                 c,
  2572.                                  long *                    playFlags)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0088, 0x7000, 0xA82A);
  2573.  
  2574. EXTERN_API( ComponentResult )
  2575. SGSetChannelMaxFrames            (SGChannel                 c,
  2576.                                  long                     frameCount)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0089, 0x7000, 0xA82A);
  2577.  
  2578. EXTERN_API( ComponentResult )
  2579. SGGetChannelMaxFrames            (SGChannel                 c,
  2580.                                  long *                    frameCount)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008A, 0x7000, 0xA82A);
  2581.  
  2582. EXTERN_API( ComponentResult )
  2583. SGSetChannelRefCon                (SGChannel                 c,
  2584.                                  long                     refCon)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x008B, 0x7000, 0xA82A);
  2585.  
  2586. EXTERN_API( ComponentResult )
  2587. SGSetChannelClip                (SGChannel                 c,
  2588.                                  RgnHandle                 theClip)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008C, 0x7000, 0xA82A);
  2589.  
  2590. EXTERN_API( ComponentResult )
  2591. SGGetChannelClip                (SGChannel                 c,
  2592.                                  RgnHandle *            theClip)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008D, 0x7000, 0xA82A);
  2593.  
  2594. EXTERN_API( ComponentResult )
  2595. SGGetChannelSampleDescription    (SGChannel                 c,
  2596.                                  Handle                 sampleDesc)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x008E, 0x7000, 0xA82A);
  2597.  
  2598. EXTERN_API( ComponentResult )
  2599. SGGetChannelDeviceList            (SGChannel                 c,
  2600.                                  long                     selectionFlags,
  2601.                                  SGDeviceList *            list)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x008F, 0x7000, 0xA82A);
  2602.  
  2603. EXTERN_API( ComponentResult )
  2604. SGSetChannelDevice                (SGChannel                 c,
  2605.                                  StringPtr                 name)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0090, 0x7000, 0xA82A);
  2606.  
  2607. EXTERN_API( ComponentResult )
  2608. SGSetChannelMatrix                (SGChannel                 c,
  2609.                                  const MatrixRecord *    m)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0091, 0x7000, 0xA82A);
  2610.  
  2611. EXTERN_API( ComponentResult )
  2612. SGGetChannelMatrix                (SGChannel                 c,
  2613.                                  MatrixRecord *            m)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0092, 0x7000, 0xA82A);
  2614.  
  2615. EXTERN_API( ComponentResult )
  2616. SGGetChannelTimeScale            (SGChannel                 c,
  2617.                                  TimeScale *            scale)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0093, 0x7000, 0xA82A);
  2618.  
  2619. EXTERN_API( ComponentResult )
  2620. SGChannelPutPicture                (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0094, 0x7000, 0xA82A);
  2621.  
  2622. EXTERN_API( ComponentResult )
  2623. SGChannelSetRequestedDataRate    (SGChannel                 c,
  2624.                                  long                     bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0095, 0x7000, 0xA82A);
  2625.  
  2626. EXTERN_API( ComponentResult )
  2627. SGChannelGetRequestedDataRate    (SGChannel                 c,
  2628.                                  long *                    bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0096, 0x7000, 0xA82A);
  2629.  
  2630. EXTERN_API( ComponentResult )
  2631. SGChannelSetDataSourceName        (SGChannel                 c,
  2632.                                  ConstStr255Param         name,
  2633.                                  ScriptCode             scriptTag)                            FIVEWORDINLINE(0x2F3C, 0x0006, 0x0097, 0x7000, 0xA82A);
  2634.  
  2635. EXTERN_API( ComponentResult )
  2636. SGChannelGetDataSourceName        (SGChannel                 c,
  2637.                                  Str255                 name,
  2638.                                  ScriptCode *            scriptTag)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0098, 0x7000, 0xA82A);
  2639.  
  2640. /*
  2641.     calls from seqGrab to Channel
  2642. */
  2643. EXTERN_API( ComponentResult )
  2644. SGInitChannel                    (SGChannel                 c,
  2645.                                  SeqGrabComponent         owner)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0180, 0x7000, 0xA82A);
  2646.  
  2647. EXTERN_API( ComponentResult )
  2648. SGWriteSamples                    (SGChannel                 c,
  2649.                                  Movie                     m,
  2650.                                  AliasHandle             theFile)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0181, 0x7000, 0xA82A);
  2651.  
  2652. EXTERN_API( ComponentResult )
  2653. SGGetDataRate                    (SGChannel                 c,
  2654.                                  long *                    bytesPerSecond)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0182, 0x7000, 0xA82A);
  2655.  
  2656. EXTERN_API( ComponentResult )
  2657. SGAlignChannelRect                (SGChannel                 c,
  2658.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0183, 0x7000, 0xA82A);
  2659.  
  2660. /*
  2661.     Dorky dialog panel calls
  2662. */
  2663. EXTERN_API( ComponentResult )
  2664. SGPanelGetDitl                    (SeqGrabComponent         s,
  2665.                                  Handle *                ditl)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0200, 0x7000, 0xA82A);
  2666.  
  2667. EXTERN_API( ComponentResult )
  2668. SGPanelGetTitle                    (SeqGrabComponent         s,
  2669.                                  Str255                 title)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0201, 0x7000, 0xA82A);
  2670.  
  2671. EXTERN_API( ComponentResult )
  2672. SGPanelCanRun                    (SeqGrabComponent         s,
  2673.                                  SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0202, 0x7000, 0xA82A);
  2674.  
  2675. EXTERN_API( ComponentResult )
  2676. SGPanelInstall                    (SeqGrabComponent         s,
  2677.                                  SGChannel                 c,
  2678.                                  DialogPtr                 d,
  2679.                                  short                     itemOffset)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0203, 0x7000, 0xA82A);
  2680.  
  2681. EXTERN_API( ComponentResult )
  2682. SGPanelEvent                    (SeqGrabComponent         s,
  2683.                                  SGChannel                 c,
  2684.                                  DialogPtr                 d,
  2685.                                  short                     itemOffset,
  2686.                                  const EventRecord *    theEvent,
  2687.                                  short *                itemHit,
  2688.                                  Boolean *                handled)                            FIVEWORDINLINE(0x2F3C, 0x0016, 0x0204, 0x7000, 0xA82A);
  2689.  
  2690. EXTERN_API( ComponentResult )
  2691. SGPanelItem                        (SeqGrabComponent         s,
  2692.                                  SGChannel                 c,
  2693.                                  DialogPtr                 d,
  2694.                                  short                     itemOffset,
  2695.                                  short                     itemNum)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x0205, 0x7000, 0xA82A);
  2696.  
  2697. EXTERN_API( ComponentResult )
  2698. SGPanelRemove                    (SeqGrabComponent         s,
  2699.                                  SGChannel                 c,
  2700.                                  DialogPtr                 d,
  2701.                                  short                     itemOffset)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0206, 0x7000, 0xA82A);
  2702.  
  2703. EXTERN_API( ComponentResult )
  2704. SGPanelSetGrabber                (SeqGrabComponent         s,
  2705.                                  SeqGrabComponent         sg)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0207, 0x7000, 0xA82A);
  2706.  
  2707. EXTERN_API( ComponentResult )
  2708. SGPanelSetResFile                (SeqGrabComponent         s,
  2709.                                  short                     resRef)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0208, 0x7000, 0xA82A);
  2710.  
  2711. EXTERN_API( ComponentResult )
  2712. SGPanelGetSettings                (SeqGrabComponent         s,
  2713.                                  SGChannel                 c,
  2714.                                  UserData *                ud,
  2715.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0209, 0x7000, 0xA82A);
  2716.  
  2717. EXTERN_API( ComponentResult )
  2718. SGPanelSetSettings                (SeqGrabComponent         s,
  2719.                                  SGChannel                 c,
  2720.                                  UserData                 ud,
  2721.                                  long                     flags)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x020A, 0x7000, 0xA82A);
  2722.  
  2723. EXTERN_API( ComponentResult )
  2724. SGPanelValidateInput            (SeqGrabComponent         s,
  2725.                                  Boolean *                ok)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x020B, 0x7000, 0xA82A);
  2726.  
  2727. EXTERN_API( ComponentResult )
  2728. SGPanelSetEventFilter            (SeqGrabComponent         s,
  2729.                                  SGModalFilterUPP         proc,
  2730.                                  long                     refCon)                                FIVEWORDINLINE(0x2F3C, 0x0008, 0x020C, 0x7000, 0xA82A);
  2731.  
  2732.  
  2733. /*** Sequence Grab VIDEO CHANNEL Component Stuff ***/
  2734. /*
  2735.     Video stuff
  2736. */
  2737.  
  2738. struct SGCompressInfo {
  2739.     Ptr                             buffer;
  2740.     unsigned long                     bufferSize;
  2741.     UInt8                             similarity;
  2742.     UInt8                             reserved;
  2743. };
  2744. typedef struct SGCompressInfo            SGCompressInfo;
  2745. typedef CALLBACK_API( ComponentResult , SGGrabBottleProcPtr )(SGChannel c, short bufferNum, long refCon);
  2746. typedef CALLBACK_API( ComponentResult , SGGrabCompleteBottleProcPtr )(SGChannel c, short bufferNum, Boolean *done, long refCon);
  2747. typedef CALLBACK_API( ComponentResult , SGDisplayBottleProcPtr )(SGChannel c, short bufferNum, MatrixRecord *mp, RgnHandle clipRgn, long refCon);
  2748. typedef CALLBACK_API( ComponentResult , SGCompressBottleProcPtr )(SGChannel c, short bufferNum, long refCon);
  2749. typedef CALLBACK_API( ComponentResult , SGCompressCompleteBottleProcPtr )(SGChannel c, short bufferNum, Boolean *done, SGCompressInfo *ci, long refCon);
  2750. typedef CALLBACK_API( ComponentResult , SGAddFrameBottleProcPtr )(SGChannel c, short bufferNum, TimeValue atTime, TimeScale scale, const SGCompressInfo *ci, long refCon);
  2751. typedef CALLBACK_API( ComponentResult , SGTransferFrameBottleProcPtr )(SGChannel c, short bufferNum, MatrixRecord *mp, RgnHandle clipRgn, long refCon);
  2752. typedef CALLBACK_API( ComponentResult , SGGrabCompressCompleteBottleProcPtr )(SGChannel c, Boolean *done, SGCompressInfo *ci, TimeRecord *t, long refCon);
  2753. typedef CALLBACK_API( ComponentResult , SGDisplayCompressBottleProcPtr )(SGChannel c, Ptr dataPtr, ImageDescriptionHandle desc, MatrixRecord *mp, RgnHandle clipRgn, long refCon);
  2754. typedef STACK_UPP_TYPE(SGGrabBottleProcPtr)                     SGGrabBottleUPP;
  2755. typedef STACK_UPP_TYPE(SGGrabCompleteBottleProcPtr)             SGGrabCompleteBottleUPP;
  2756. typedef STACK_UPP_TYPE(SGDisplayBottleProcPtr)                     SGDisplayBottleUPP;
  2757. typedef STACK_UPP_TYPE(SGCompressBottleProcPtr)                 SGCompressBottleUPP;
  2758. typedef STACK_UPP_TYPE(SGCompressCompleteBottleProcPtr)         SGCompressCompleteBottleUPP;
  2759. typedef STACK_UPP_TYPE(SGAddFrameBottleProcPtr)                 SGAddFrameBottleUPP;
  2760. typedef STACK_UPP_TYPE(SGTransferFrameBottleProcPtr)             SGTransferFrameBottleUPP;
  2761. typedef STACK_UPP_TYPE(SGGrabCompressCompleteBottleProcPtr)     SGGrabCompressCompleteBottleUPP;
  2762. typedef STACK_UPP_TYPE(SGDisplayCompressBottleProcPtr)             SGDisplayCompressBottleUPP;
  2763.  
  2764. struct VideoBottles {
  2765.     short                             procCount;
  2766.     SGGrabBottleUPP                 grabProc;
  2767.     SGGrabCompleteBottleUPP         grabCompleteProc;
  2768.     SGDisplayBottleUPP                 displayProc;
  2769.     SGCompressBottleUPP             compressProc;
  2770.     SGCompressCompleteBottleUPP     compressCompleteProc;
  2771.     SGAddFrameBottleUPP             addFrameProc;
  2772.     SGTransferFrameBottleUPP         transferFrameProc;
  2773.     SGGrabCompressCompleteBottleUPP  grabCompressCompleteProc;
  2774.     SGDisplayCompressBottleUPP         displayCompressProc;
  2775. };
  2776. typedef struct VideoBottles                VideoBottles;
  2777. EXTERN_API( ComponentResult )
  2778. SGGetSrcVideoBounds                (SGChannel                 c,
  2779.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  2780.  
  2781. EXTERN_API( ComponentResult )
  2782. SGSetVideoRect                    (SGChannel                 c,
  2783.                                  const Rect *            r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  2784.  
  2785. EXTERN_API( ComponentResult )
  2786. SGGetVideoRect                    (SGChannel                 c,
  2787.                                  Rect *                    r)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0102, 0x7000, 0xA82A);
  2788.  
  2789. EXTERN_API( ComponentResult )
  2790. SGGetVideoCompressorType        (SGChannel                 c,
  2791.                                  OSType *                compressorType)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  2792.  
  2793. EXTERN_API( ComponentResult )
  2794. SGSetVideoCompressorType        (SGChannel                 c,
  2795.                                  OSType                 compressorType)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0104, 0x7000, 0xA82A);
  2796.  
  2797. EXTERN_API( ComponentResult )
  2798. SGSetVideoCompressor            (SGChannel                 c,
  2799.                                  short                     depth,
  2800.                                  CompressorComponent     compressor,
  2801.                                  CodecQ                 spatialQuality,
  2802.                                  CodecQ                 temporalQuality,
  2803.                                  long                     keyFrameRate)                        FIVEWORDINLINE(0x2F3C, 0x0012, 0x0105, 0x7000, 0xA82A);
  2804.  
  2805. EXTERN_API( ComponentResult )
  2806. SGGetVideoCompressor            (SGChannel                 c,
  2807.                                  short *                depth,
  2808.                                  CompressorComponent *    compressor,
  2809.                                  CodecQ *                spatialQuality,
  2810.                                  CodecQ *                temporalQuality,
  2811.                                  long *                    keyFrameRate)                        FIVEWORDINLINE(0x2F3C, 0x0014, 0x0106, 0x7000, 0xA82A);
  2812.  
  2813. EXTERN_API( ComponentInstance )
  2814. SGGetVideoDigitizerComponent    (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0107, 0x7000, 0xA82A);
  2815.  
  2816. EXTERN_API( ComponentResult )
  2817. SGSetVideoDigitizerComponent    (SGChannel                 c,
  2818.                                  ComponentInstance         vdig)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0108, 0x7000, 0xA82A);
  2819.  
  2820. EXTERN_API( ComponentResult )
  2821. SGVideoDigitizerChanged            (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0109, 0x7000, 0xA82A);
  2822.  
  2823. EXTERN_API( ComponentResult )
  2824. SGSetVideoBottlenecks            (SGChannel                 c,
  2825.                                  VideoBottles *            vb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x010A, 0x7000, 0xA82A);
  2826.  
  2827. EXTERN_API( ComponentResult )
  2828. SGGetVideoBottlenecks            (SGChannel                 c,
  2829.                                  VideoBottles *            vb)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x010B, 0x7000, 0xA82A);
  2830.  
  2831. EXTERN_API( ComponentResult )
  2832. SGGrabFrame                        (SGChannel                 c,
  2833.                                  short                     bufferNum)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x010C, 0x7000, 0xA82A);
  2834.  
  2835. EXTERN_API( ComponentResult )
  2836. SGGrabFrameComplete                (SGChannel                 c,
  2837.                                  short                     bufferNum,
  2838.                                  Boolean *                done)                                FIVEWORDINLINE(0x2F3C, 0x0006, 0x010D, 0x7000, 0xA82A);
  2839.  
  2840. EXTERN_API( ComponentResult )
  2841. SGDisplayFrame                    (SGChannel                 c,
  2842.                                  short                     bufferNum,
  2843.                                  const MatrixRecord *    mp,
  2844.                                  RgnHandle                 clipRgn)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x010E, 0x7000, 0xA82A);
  2845.  
  2846. EXTERN_API( ComponentResult )
  2847. SGCompressFrame                    (SGChannel                 c,
  2848.                                  short                     bufferNum)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x010F, 0x7000, 0xA82A);
  2849.  
  2850. EXTERN_API( ComponentResult )
  2851. SGCompressFrameComplete            (SGChannel                 c,
  2852.                                  short                     bufferNum,
  2853.                                  Boolean *                done,
  2854.                                  SGCompressInfo *        ci)                                    FIVEWORDINLINE(0x2F3C, 0x000A, 0x0110, 0x7000, 0xA82A);
  2855.  
  2856. EXTERN_API( ComponentResult )
  2857. SGAddFrame                        (SGChannel                 c,
  2858.                                  short                     bufferNum,
  2859.                                  TimeValue                 atTime,
  2860.                                  TimeScale                 scale,
  2861.                                  const SGCompressInfo *    ci)                                    FIVEWORDINLINE(0x2F3C, 0x000E, 0x0111, 0x7000, 0xA82A);
  2862.  
  2863. EXTERN_API( ComponentResult )
  2864. SGTransferFrameForCompress        (SGChannel                 c,
  2865.                                  short                     bufferNum,
  2866.                                  const MatrixRecord *    mp,
  2867.                                  RgnHandle                 clipRgn)                            FIVEWORDINLINE(0x2F3C, 0x000A, 0x0112, 0x7000, 0xA82A);
  2868.  
  2869. EXTERN_API( ComponentResult )
  2870. SGSetCompressBuffer                (SGChannel                 c,
  2871.                                  short                     depth,
  2872.                                  const Rect *            compressSize)                        FIVEWORDINLINE(0x2F3C, 0x0006, 0x0113, 0x7000, 0xA82A);
  2873.  
  2874. EXTERN_API( ComponentResult )
  2875. SGGetCompressBuffer                (SGChannel                 c,
  2876.                                  short *                depth,
  2877.                                  Rect *                    compressSize)                        FIVEWORDINLINE(0x2F3C, 0x0008, 0x0114, 0x7000, 0xA82A);
  2878.  
  2879. EXTERN_API( ComponentResult )
  2880. SGGetBufferInfo                    (SGChannel                 c,
  2881.                                  short                     bufferNum,
  2882.                                  PixMapHandle *            bufferPM,
  2883.                                  Rect *                    bufferRect,
  2884.                                  GWorldPtr *            compressBuffer,
  2885.                                  Rect *                    compressBufferRect)                    FIVEWORDINLINE(0x2F3C, 0x0012, 0x0115, 0x7000, 0xA82A);
  2886.  
  2887. EXTERN_API( ComponentResult )
  2888. SGSetUseScreenBuffer            (SGChannel                 c,
  2889.                                  Boolean                 useScreenBuffer)                    FIVEWORDINLINE(0x2F3C, 0x0002, 0x0116, 0x7000, 0xA82A);
  2890.  
  2891. EXTERN_API( ComponentResult )
  2892. SGGetUseScreenBuffer            (SGChannel                 c,
  2893.                                  Boolean *                useScreenBuffer)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0117, 0x7000, 0xA82A);
  2894.  
  2895. EXTERN_API( ComponentResult )
  2896. SGGrabCompressComplete            (SGChannel                 c,
  2897.                                  Boolean *                done,
  2898.                                  SGCompressInfo *        ci,
  2899.                                  TimeRecord *            tr)                                    FIVEWORDINLINE(0x2F3C, 0x000C, 0x0118, 0x7000, 0xA82A);
  2900.  
  2901. EXTERN_API( ComponentResult )
  2902. SGDisplayCompress                (SGChannel                 c,
  2903.                                  Ptr                     dataPtr,
  2904.                                  ImageDescriptionHandle  desc,
  2905.                                  MatrixRecord *            mp,
  2906.                                  RgnHandle                 clipRgn)                            FIVEWORDINLINE(0x2F3C, 0x0010, 0x0119, 0x7000, 0xA82A);
  2907.  
  2908. EXTERN_API( ComponentResult )
  2909. SGSetFrameRate                    (SGChannel                 c,
  2910.                                  Fixed                     frameRate)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x011A, 0x7000, 0xA82A);
  2911.  
  2912. EXTERN_API( ComponentResult )
  2913. SGGetFrameRate                    (SGChannel                 c,
  2914.                                  Fixed *                frameRate)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x011B, 0x7000, 0xA82A);
  2915.  
  2916.  
  2917. EXTERN_API( ComponentResult )
  2918. SGSetPreferredPacketSize        (SGChannel                 c,
  2919.                                  long                     preferredPacketSizeInBytes)            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0121, 0x7000, 0xA82A);
  2920.  
  2921. EXTERN_API( ComponentResult )
  2922. SGGetPreferredPacketSize        (SGChannel                 c,
  2923.                                  long *                    preferredPacketSizeInBytes)            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0122, 0x7000, 0xA82A);
  2924.  
  2925. EXTERN_API( ComponentResult )
  2926. SGSetUserVideoCompressorList    (SGChannel                 c,
  2927.                                  Handle                 compressorTypes)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0123, 0x7000, 0xA82A);
  2928.  
  2929. EXTERN_API( ComponentResult )
  2930. SGGetUserVideoCompressorList    (SGChannel                 c,
  2931.                                  Handle *                compressorTypes)                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0124, 0x7000, 0xA82A);
  2932.  
  2933. /*** Sequence Grab SOUND CHANNEL Component Stuff ***/
  2934.  
  2935. /*
  2936.     Sound stuff
  2937. */
  2938. EXTERN_API( ComponentResult )
  2939. SGSetSoundInputDriver            (SGChannel                 c,
  2940.                                  ConstStr255Param         driverName)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  2941.  
  2942. EXTERN_API( long )
  2943. SGGetSoundInputDriver            (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0101, 0x7000, 0xA82A);
  2944.  
  2945. EXTERN_API( ComponentResult )
  2946. SGSoundInputDriverChanged        (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0102, 0x7000, 0xA82A);
  2947.  
  2948. EXTERN_API( ComponentResult )
  2949. SGSetSoundRecordChunkSize        (SGChannel                 c,
  2950.                                  long                     seconds)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  2951.  
  2952. EXTERN_API( long )
  2953. SGGetSoundRecordChunkSize        (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0104, 0x7000, 0xA82A);
  2954.  
  2955. EXTERN_API( ComponentResult )
  2956. SGSetSoundInputRate                (SGChannel                 c,
  2957.                                  Fixed                     rate)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0105, 0x7000, 0xA82A);
  2958.  
  2959. EXTERN_API( Fixed )
  2960. SGGetSoundInputRate                (SGChannel                 c)                                    FIVEWORDINLINE(0x2F3C, 0x0000, 0x0106, 0x7000, 0xA82A);
  2961.  
  2962. EXTERN_API( ComponentResult )
  2963. SGSetSoundInputParameters        (SGChannel                 c,
  2964.                                  short                     sampleSize,
  2965.                                  short                     numChannels,
  2966.                                  OSType                 compressionType)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0107, 0x7000, 0xA82A);
  2967.  
  2968. EXTERN_API( ComponentResult )
  2969. SGGetSoundInputParameters        (SGChannel                 c,
  2970.                                  short *                sampleSize,
  2971.                                  short *                numChannels,
  2972.                                  OSType *                compressionType)                    FIVEWORDINLINE(0x2F3C, 0x000C, 0x0108, 0x7000, 0xA82A);
  2973.  
  2974. EXTERN_API( ComponentResult )
  2975. SGSetAdditionalSoundRates        (SGChannel                 c,
  2976.                                  Handle                 rates)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0109, 0x7000, 0xA82A);
  2977.  
  2978. EXTERN_API( ComponentResult )
  2979. SGGetAdditionalSoundRates        (SGChannel                 c,
  2980.                                  Handle *                rates)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x010A, 0x7000, 0xA82A);
  2981.  
  2982. /*
  2983.     Text stuff
  2984. */
  2985. EXTERN_API( ComponentResult )
  2986. SGSetFontName                    (SGChannel                 c,
  2987.                                  StringPtr                 pstr)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  2988.  
  2989. EXTERN_API( ComponentResult )
  2990. SGSetFontSize                    (SGChannel                 c,
  2991.                                  short                     fontSize)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x0101, 0x7000, 0xA82A);
  2992.  
  2993. EXTERN_API( ComponentResult )
  2994. SGSetTextForeColor                (SGChannel                 c,
  2995.                                  RGBColor *                theColor)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0102, 0x7000, 0xA82A);
  2996.  
  2997. EXTERN_API( ComponentResult )
  2998. SGSetTextBackColor                (SGChannel                 c,
  2999.                                  RGBColor *                theColor)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0103, 0x7000, 0xA82A);
  3000.  
  3001. EXTERN_API( ComponentResult )
  3002. SGSetJustification                (SGChannel                 c,
  3003.                                  short                     just)                                FIVEWORDINLINE(0x2F3C, 0x0002, 0x0104, 0x7000, 0xA82A);
  3004.  
  3005. EXTERN_API( ComponentResult )
  3006. SGGetTextReturnToSpaceValue        (SGChannel                 c,
  3007.                                  short *                rettospace)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0105, 0x7000, 0xA82A);
  3008.  
  3009. EXTERN_API( ComponentResult )
  3010. SGSetTextReturnToSpaceValue        (SGChannel                 c,
  3011.                                  short                     rettospace)                            FIVEWORDINLINE(0x2F3C, 0x0002, 0x0106, 0x7000, 0xA82A);
  3012.  
  3013. /*
  3014.     Music stuff
  3015. */
  3016. EXTERN_API( ComponentResult )
  3017. SGGetInstrument                    (SGChannel                 c,
  3018.                                  ToneDescription *        td)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0100, 0x7000, 0xA82A);
  3019.  
  3020. EXTERN_API( ComponentResult )
  3021. SGSetInstrument                    (SGChannel                 c,
  3022.                                  ToneDescription *        td)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x0101, 0x7000, 0xA82A);
  3023.  
  3024.  
  3025.  
  3026. enum {
  3027.     sgChannelAtom                = FOUR_CHAR_CODE('chan'),
  3028.     sgChannelSettingsAtom        = FOUR_CHAR_CODE('ctom'),
  3029.     sgChannelDescription        = FOUR_CHAR_CODE('cdsc'),
  3030.     sgChannelSettings            = FOUR_CHAR_CODE('cset')
  3031. };
  3032.  
  3033.  
  3034. enum {
  3035.     sgDeviceNameType            = FOUR_CHAR_CODE('name'),
  3036.     sgUsageType                    = FOUR_CHAR_CODE('use '),
  3037.     sgPlayFlagsType                = FOUR_CHAR_CODE('plyf'),
  3038.     sgClipType                    = FOUR_CHAR_CODE('clip'),
  3039.     sgMatrixType                = FOUR_CHAR_CODE('mtrx'),
  3040.     sgVolumeType                = FOUR_CHAR_CODE('volu')
  3041. };
  3042.  
  3043.  
  3044. enum {
  3045.     sgPanelSettingsAtom            = FOUR_CHAR_CODE('ptom'),
  3046.     sgPanelDescription            = FOUR_CHAR_CODE('pdsc'),
  3047.     sgPanelSettings                = FOUR_CHAR_CODE('pset')
  3048. };
  3049.  
  3050.  
  3051. enum {
  3052.     sgcSoundCompressionType        = FOUR_CHAR_CODE('scmp'),
  3053.     sgcSoundSampleRateType        = FOUR_CHAR_CODE('srat'),
  3054.     sgcSoundChannelCountType    = FOUR_CHAR_CODE('schn'),
  3055.     sgcSoundSampleSizeType        = FOUR_CHAR_CODE('ssiz'),
  3056.     sgcSoundInputType            = FOUR_CHAR_CODE('sinp'),
  3057.     sgcSoundGainType            = FOUR_CHAR_CODE('gain')
  3058. };
  3059.  
  3060.  
  3061. enum {
  3062.     sgcVideoHueType                = FOUR_CHAR_CODE('hue '),
  3063.     sgcVideoSaturationType        = FOUR_CHAR_CODE('satr'),
  3064.     sgcVideoContrastType        = FOUR_CHAR_CODE('trst'),
  3065.     sgcVideoSharpnessType        = FOUR_CHAR_CODE('shrp'),
  3066.     sgcVideoBrigtnessType        = FOUR_CHAR_CODE('brit'),
  3067.     sgcVideoBlackLevelType        = FOUR_CHAR_CODE('blkl'),
  3068.     sgcVideoWhiteLevelType        = FOUR_CHAR_CODE('whtl'),
  3069.     sgcVideoInputType            = FOUR_CHAR_CODE('vinp'),
  3070.     sgcVideoFormatType            = FOUR_CHAR_CODE('vstd'),
  3071.     sgcVideoFilterType            = FOUR_CHAR_CODE('vflt'),
  3072.     sgcVideoRectType            = FOUR_CHAR_CODE('vrct'),
  3073.     sgcVideoDigitizerType        = FOUR_CHAR_CODE('vdig')
  3074. };
  3075.  
  3076.  
  3077.  
  3078.  
  3079.  
  3080. typedef ComponentInstance                 QTVideoOutputComponent;
  3081. /* Component type and subtype enumerations*/
  3082.  
  3083. enum {
  3084.     QTVideoOutputComponentType    = FOUR_CHAR_CODE('vout'),
  3085.     QTVideoOutputComponentBaseSubType = FOUR_CHAR_CODE('base')
  3086. };
  3087.  
  3088.  
  3089. /* QTVideoOutput Component flags*/
  3090.  
  3091.  
  3092. enum {
  3093.     kQTVideoOutputDontDisplayToUser = 1L << 0
  3094. };
  3095.  
  3096. /* Display mode atom types*/
  3097.  
  3098.  
  3099. enum {
  3100.     kQTVODisplayModeItem        = FOUR_CHAR_CODE('qdmi'),
  3101.     kQTVODimensions                = FOUR_CHAR_CODE('dimn'),        /* atom contains two longs - pixel count - width, height*/
  3102.     kQTVOResolution                = FOUR_CHAR_CODE('resl'),        /* atom contains two Fixed - hRes, vRes in dpi*/
  3103.     kQTVORefreshRate            = FOUR_CHAR_CODE('refr'),        /* atom contains one Fixed - refresh rate in Hz*/
  3104.     kQTVOPixelType                = FOUR_CHAR_CODE('pixl'),        /* atom contains one OSType - pixel format of mode*/
  3105.     kQTVOName                    = FOUR_CHAR_CODE('name'),        /* atom contains string (no length byte) - name of modefor display to user*/
  3106.     kQTVODecompressors            = FOUR_CHAR_CODE('deco'),        /* atom contains other atoms indicating supported decompressors*/
  3107.                                                                 /* kQTVODecompressors sub-atoms*/
  3108.     kQTVODecompressorType        = FOUR_CHAR_CODE('dety'),        /* atom contains one OSType - decompressor type code*/
  3109.     kQTVODecompressorContinuous    = FOUR_CHAR_CODE('cont'),        /* atom contains one Boolean - true if this type is displayed continuously*/
  3110.     kQTVODecompressorComponent    = FOUR_CHAR_CODE('cmpt')        /* atom contains one Component - component id of decompressor*/
  3111. };
  3112.  
  3113. /** These are QTVideoOutput procedures **/
  3114. EXTERN_API( ComponentResult )
  3115. QTVideoOutputGetDisplayModeList    (QTVideoOutputComponent  vo,
  3116.                                  QTAtomContainer *        outputs)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
  3117.  
  3118. EXTERN_API( ComponentResult )
  3119. QTVideoOutputGetCurrentClientName (QTVideoOutputComponent  vo,
  3120.                                  Str255                 str)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0002, 0x7000, 0xA82A);
  3121.  
  3122. EXTERN_API( ComponentResult )
  3123. QTVideoOutputSetClientName        (QTVideoOutputComponent  vo,
  3124.                                  ConstStr255Param         str)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
  3125.  
  3126. EXTERN_API( ComponentResult )
  3127. QTVideoOutputGetClientName        (QTVideoOutputComponent  vo,
  3128.                                  Str255                 str)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  3129.  
  3130. EXTERN_API( ComponentResult )
  3131. QTVideoOutputBegin                (QTVideoOutputComponent  vo)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0005, 0x7000, 0xA82A);
  3132.  
  3133. EXTERN_API( ComponentResult )
  3134. QTVideoOutputEnd                (QTVideoOutputComponent  vo)                                FIVEWORDINLINE(0x2F3C, 0x0000, 0x0006, 0x7000, 0xA82A);
  3135.  
  3136. EXTERN_API( ComponentResult )
  3137. QTVideoOutputSetDisplayMode        (QTVideoOutputComponent  vo,
  3138.                                  long                     displayModeID)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  3139.  
  3140. EXTERN_API( ComponentResult )
  3141. QTVideoOutputGetDisplayMode        (QTVideoOutputComponent  vo,
  3142.                                  long *                    displayModeID)                        FIVEWORDINLINE(0x2F3C, 0x0004, 0x0008, 0x7000, 0xA82A);
  3143.  
  3144. EXTERN_API( ComponentResult )
  3145. QTVideoOutputCustomConfigureDisplay (QTVideoOutputComponent  vo,
  3146.                                  ModalFilterUPP         filter)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x0009, 0x7000, 0xA82A);
  3147.  
  3148. EXTERN_API( ComponentResult )
  3149. QTVideoOutputSaveState            (QTVideoOutputComponent  vo,
  3150.                                  QTAtomContainer *        state)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
  3151.  
  3152. EXTERN_API( ComponentResult )
  3153. QTVideoOutputRestoreState        (QTVideoOutputComponent  vo,
  3154.                                  QTAtomContainer         state)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000B, 0x7000, 0xA82A);
  3155.  
  3156. EXTERN_API( ComponentResult )
  3157. QTVideoOutputGetGWorld            (QTVideoOutputComponent  vo,
  3158.                                  GWorldPtr *            gw)                                    FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
  3159.  
  3160. EXTERN_API( ComponentResult )
  3161. QTVideoOutputGetGWorldParameters (QTVideoOutputComponent  vo,
  3162.                                  Ptr *                    baseAddr,
  3163.                                  long *                    rowBytes,
  3164.                                  CTabHandle *            colorTable)                            FIVEWORDINLINE(0x2F3C, 0x000C, 0x000D, 0x7000, 0xA82A);
  3165.  
  3166. EXTERN_API( ComponentResult )
  3167. QTVideoOutputGetIndSoundOutput    (QTVideoOutputComponent  vo,
  3168.                                  long                     index,
  3169.                                  Component *            outputComponent)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x000E, 0x7000, 0xA82A);
  3170.  
  3171. EXTERN_API( ComponentResult )
  3172. QTVideoOutputGetClock            (QTVideoOutputComponent  vo,
  3173.                                  ComponentInstance *    clock)                                FIVEWORDINLINE(0x2F3C, 0x0004, 0x000F, 0x7000, 0xA82A);
  3174.  
  3175. EXTERN_API( ComponentResult )
  3176. QTVideoOutputSetEchoPort        (QTVideoOutputComponent  vo,
  3177.                                  CGrafPtr                 echoPort)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0010, 0x7000, 0xA82A);
  3178.  
  3179. /* UPP call backs */
  3180. enum { uppDataHCompletionProcInfo = 0x00000BC0 };                 /* pascal no_return_value Func(4_bytes, 4_bytes, 2_bytes) */
  3181. enum { uppVdigIntProcInfo = 0x000003C0 };                         /* pascal no_return_value Func(4_bytes, 4_bytes) */
  3182. enum { uppSGDataProcInfo = 0x003BFFE0 };                         /* pascal 2_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 2_bytes, 4_bytes) */
  3183. enum { uppSGModalFilterProcInfo = 0x00003FD0 };                 /* pascal 1_byte Func(4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3184. enum { uppSGGrabBottleProcInfo = 0x00000EF0 };                     /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes) */
  3185. enum { uppSGGrabCompleteBottleProcInfo = 0x00003EF0 };             /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes) */
  3186. enum { uppSGDisplayBottleProcInfo = 0x0000FEF0 };                 /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3187. enum { uppSGCompressBottleProcInfo = 0x00000EF0 };                 /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes) */
  3188. enum { uppSGCompressCompleteBottleProcInfo = 0x0000FEF0 };         /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3189. enum { uppSGAddFrameBottleProcInfo = 0x0003FEF0 };                 /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3190. enum { uppSGTransferFrameBottleProcInfo = 0x0000FEF0 };         /* pascal 4_bytes Func(4_bytes, 2_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3191. enum { uppSGGrabCompressCompleteBottleProcInfo = 0x0000FFF0 };     /* pascal 4_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3192. enum { uppSGDisplayCompressBottleProcInfo = 0x0003FFF0 };         /* pascal 4_bytes Func(4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes, 4_bytes) */
  3193. #define NewDataHCompletionProc(userRoutine)                     (DataHCompletionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppDataHCompletionProcInfo, GetCurrentArchitecture())
  3194. #define NewVdigIntProc(userRoutine)                             (VdigIntUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppVdigIntProcInfo, GetCurrentArchitecture())
  3195. #define NewSGDataProc(userRoutine)                                 (SGDataUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGDataProcInfo, GetCurrentArchitecture())
  3196. #define NewSGModalFilterProc(userRoutine)                         (SGModalFilterUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGModalFilterProcInfo, GetCurrentArchitecture())
  3197. #define NewSGGrabBottleProc(userRoutine)                         (SGGrabBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGGrabBottleProcInfo, GetCurrentArchitecture())
  3198. #define NewSGGrabCompleteBottleProc(userRoutine)                 (SGGrabCompleteBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGGrabCompleteBottleProcInfo, GetCurrentArchitecture())
  3199. #define NewSGDisplayBottleProc(userRoutine)                     (SGDisplayBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGDisplayBottleProcInfo, GetCurrentArchitecture())
  3200. #define NewSGCompressBottleProc(userRoutine)                     (SGCompressBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGCompressBottleProcInfo, GetCurrentArchitecture())
  3201. #define NewSGCompressCompleteBottleProc(userRoutine)             (SGCompressCompleteBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGCompressCompleteBottleProcInfo, GetCurrentArchitecture())
  3202. #define NewSGAddFrameBottleProc(userRoutine)                     (SGAddFrameBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGAddFrameBottleProcInfo, GetCurrentArchitecture())
  3203. #define NewSGTransferFrameBottleProc(userRoutine)                 (SGTransferFrameBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGTransferFrameBottleProcInfo, GetCurrentArchitecture())
  3204. #define NewSGGrabCompressCompleteBottleProc(userRoutine)         (SGGrabCompressCompleteBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGGrabCompressCompleteBottleProcInfo, GetCurrentArchitecture())
  3205. #define NewSGDisplayCompressBottleProc(userRoutine)             (SGDisplayCompressBottleUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSGDisplayCompressBottleProcInfo, GetCurrentArchitecture())
  3206. #define CallDataHCompletionProc(userRoutine, request, refcon, err)  CALL_THREE_PARAMETER_UPP((userRoutine), uppDataHCompletionProcInfo, (request), (refcon), (err))
  3207. #define CallVdigIntProc(userRoutine, flags, refcon)             CALL_TWO_PARAMETER_UPP((userRoutine), uppVdigIntProcInfo, (flags), (refcon))
  3208. #define CallSGDataProc(userRoutine, c, p, len, offset, chRefCon, time, writeType, refCon)  CALL_EIGHT_PARAMETER_UPP((userRoutine), uppSGDataProcInfo, (c), (p), (len), (offset), (chRefCon), (time), (writeType), (refCon))
  3209. #define CallSGModalFilterProc(userRoutine, theDialog, theEvent, itemHit, refCon)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppSGModalFilterProcInfo, (theDialog), (theEvent), (itemHit), (refCon))
  3210. #define CallSGGrabBottleProc(userRoutine, c, bufferNum, refCon)  CALL_THREE_PARAMETER_UPP((userRoutine), uppSGGrabBottleProcInfo, (c), (bufferNum), (refCon))
  3211. #define CallSGGrabCompleteBottleProc(userRoutine, c, bufferNum, done, refCon)  CALL_FOUR_PARAMETER_UPP((userRoutine), uppSGGrabCompleteBottleProcInfo, (c), (bufferNum), (done), (refCon))
  3212. #define CallSGDisplayBottleProc(userRoutine, c, bufferNum, mp, clipRgn, refCon)  CALL_FIVE_PARAMETER_UPP((userRoutine), uppSGDisplayBottleProcInfo, (c), (bufferNum), (mp), (clipRgn), (refCon))
  3213. #define CallSGCompressBottleProc(userRoutine, c, bufferNum, refCon)  CALL_THREE_PARAMETER_UPP((userRoutine), uppSGCompressBottleProcInfo, (c), (bufferNum), (refCon))
  3214. #define CallSGCompressCompleteBottleProc(userRoutine, c, bufferNum, done, ci, refCon)  CALL_FIVE_PARAMETER_UPP((userRoutine), uppSGCompressCompleteBottleProcInfo, (c), (bufferNum), (done), (ci), (refCon))
  3215. #define CallSGAddFrameBottleProc(userRoutine, c, bufferNum, atTime, scale, ci, refCon)  CALL_SIX_PARAMETER_UPP((userRoutine), uppSGAddFrameBottleProcInfo, (c), (bufferNum), (atTime), (scale), (ci), (refCon))
  3216. #define CallSGTransferFrameBottleProc(userRoutine, c, bufferNum, mp, clipRgn, refCon)  CALL_FIVE_PARAMETER_UPP((userRoutine), uppSGTransferFrameBottleProcInfo, (c), (bufferNum), (mp), (clipRgn), (refCon))
  3217. #define CallSGGrabCompressCompleteBottleProc(userRoutine, c, done, ci, t, refCon)  CALL_FIVE_PARAMETER_UPP((userRoutine), uppSGGrabCompressCompleteBottleProcInfo, (c), (done), (ci), (t), (refCon))
  3218. #define CallSGDisplayCompressBottleProc(userRoutine, c, dataPtr, desc, mp, clipRgn, refCon)  CALL_SIX_PARAMETER_UPP((userRoutine), uppSGDisplayCompressBottleProcInfo, (c), (dataPtr), (desc), (mp), (clipRgn), (refCon))
  3219.  
  3220. /* selectors for component calls */
  3221. enum {
  3222.     kClockGetTimeSelect                                = 0x0001,
  3223.     kClockNewCallBackSelect                            = 0x0002,
  3224.     kClockDisposeCallBackSelect                        = 0x0003,
  3225.     kClockCallMeWhenSelect                            = 0x0004,
  3226.     kClockCancelCallBackSelect                        = 0x0005,
  3227.     kClockRateChangedSelect                            = 0x0006,
  3228.     kClockTimeChangedSelect                            = 0x0007,
  3229.     kClockSetTimeBaseSelect                            = 0x0008,
  3230.     kClockStartStopChangedSelect                    = 0x0009,
  3231.     kClockGetRateSelect                                = 0x000A,
  3232.     kSCGetCompressionExtendedSelect                    = 0x0001,
  3233.     kSCPositionRectSelect                            = 0x0002,
  3234.     kSCPositionDialogSelect                            = 0x0003,
  3235.     kSCSetTestImagePictHandleSelect                    = 0x0004,
  3236.     kSCSetTestImagePictFileSelect                    = 0x0005,
  3237.     kSCSetTestImagePixMapSelect                        = 0x0006,
  3238.     kSCGetBestDeviceRectSelect                        = 0x0007,
  3239.     kSCRequestImageSettingsSelect                    = 0x000A,
  3240.     kSCCompressImageSelect                            = 0x000B,
  3241.     kSCCompressPictureSelect                        = 0x000C,
  3242.     kSCCompressPictureFileSelect                    = 0x000D,
  3243.     kSCRequestSequenceSettingsSelect                = 0x000E,
  3244.     kSCCompressSequenceBeginSelect                    = 0x000F,
  3245.     kSCCompressSequenceFrameSelect                    = 0x0010,
  3246.     kSCCompressSequenceEndSelect                    = 0x0011,
  3247.     kSCDefaultPictHandleSettingsSelect                = 0x0012,
  3248.     kSCDefaultPictFileSettingsSelect                = 0x0013,
  3249.     kSCDefaultPixMapSettingsSelect                    = 0x0014,
  3250.     kSCGetInfoSelect                                = 0x0015,
  3251.     kSCSetInfoSelect                                = 0x0016,
  3252.     kSCNewGWorldSelect                                = 0x0017,
  3253.     kSCSetCompressFlagsSelect                        = 0x0018,
  3254.     kSCGetCompressFlagsSelect                        = 0x0019,
  3255.     kSCGetSettingsAsTextSelect                        = 0x001A,
  3256.     kSCGetSettingsAsAtomContainerSelect                = 0x001B,
  3257.     kSCSetSettingsFromAtomContainerSelect            = 0x001C,
  3258.     kTweenerInitializeSelect                        = 0x0001,
  3259.     kTweenerDoTweenSelect                            = 0x0002,
  3260.     kTweenerResetSelect                                = 0x0003,
  3261.     kTCGetCurrentTimeCodeSelect                        = 0x0101,
  3262.     kTCGetTimeCodeAtTimeSelect                        = 0x0102,
  3263.     kTCTimeCodeToStringSelect                        = 0x0103,
  3264.     kTCTimeCodeToFrameNumberSelect                    = 0x0104,
  3265.     kTCFrameNumberToTimeCodeSelect                    = 0x0105,
  3266.     kTCGetSourceRefSelect                            = 0x0106,
  3267.     kTCSetSourceRefSelect                            = 0x0107,
  3268.     kTCSetTimeCodeFlagsSelect                        = 0x0108,
  3269.     kTCGetTimeCodeFlagsSelect                        = 0x0109,
  3270.     kTCSetDisplayOptionsSelect                        = 0x010A,
  3271.     kTCGetDisplayOptionsSelect                        = 0x010B,
  3272.     kMovieImportHandleSelect                        = 0x0001,
  3273.     kMovieImportFileSelect                            = 0x0002,
  3274.     kMovieImportSetSampleDurationSelect                = 0x0003,
  3275.     kMovieImportSetSampleDescriptionSelect            = 0x0004,
  3276.     kMovieImportSetMediaFileSelect                    = 0x0005,
  3277.     kMovieImportSetDimensionsSelect                    = 0x0006,
  3278.     kMovieImportSetChunkSizeSelect                    = 0x0007,
  3279.     kMovieImportSetProgressProcSelect                = 0x0008,
  3280.     kMovieImportSetAuxiliaryDataSelect                = 0x0009,
  3281.     kMovieImportSetFromScrapSelect                    = 0x000A,
  3282.     kMovieImportDoUserDialogSelect                    = 0x000B,
  3283.     kMovieImportSetDurationSelect                    = 0x000C,
  3284.     kMovieImportGetAuxiliaryDataTypeSelect            = 0x000D,
  3285.     kMovieImportValidateSelect                        = 0x000E,
  3286.     kMovieImportGetFileTypeSelect                    = 0x000F,
  3287.     kMovieImportDataRefSelect                        = 0x0010,
  3288.     kMovieImportGetSampleDescriptionSelect            = 0x0011,
  3289.     kMovieImportGetMIMETypeListSelect                = 0x0012,
  3290.     kMovieImportSetOffsetAndLimitSelect                = 0x0013,
  3291.     kMovieImportGetSettingsAsAtomContainerSelect    = 0x0014,
  3292.     kMovieImportSetSettingsFromAtomContainerSelect = 0x0015,
  3293.     kMovieExportToHandleSelect                        = 0x0080,
  3294.     kMovieExportToFileSelect                        = 0x0081,
  3295.     kMovieExportGetAuxiliaryDataSelect                = 0x0083,
  3296.     kMovieExportSetProgressProcSelect                = 0x0084,
  3297.     kMovieExportSetSampleDescriptionSelect            = 0x0085,
  3298.     kMovieExportDoUserDialogSelect                    = 0x0086,
  3299.     kMovieExportGetCreatorTypeSelect                = 0x0087,
  3300.     kMovieExportToDataRefSelect                        = 0x0088,
  3301.     kMovieExportFromProceduresToDataRefSelect        = 0x0089,
  3302.     kMovieExportAddDataSourceSelect                    = 0x008A,
  3303.     kMovieExportValidateSelect                        = 0x008B,
  3304.     kMovieExportGetSettingsAsAtomContainerSelect    = 0x008C,
  3305.     kMovieExportSetSettingsFromAtomContainerSelect = 0x008D,
  3306.     kMovieExportGetFileNameExtensionSelect            = 0x008E,
  3307.     kMovieExportGetShortFileTypeStringSelect        = 0x008F,
  3308.     kTextExportGetDisplayDataSelect                    = 0x0100,
  3309.     kTextExportGetTimeFractionSelect                = 0x0101,
  3310.     kTextExportSetTimeFractionSelect                = 0x0102,
  3311.     kTextExportGetSettingsSelect                    = 0x0103,
  3312.     kTextExportSetSettingsSelect                    = 0x0104,
  3313.     kMIDIImportGetSettingsSelect                    = 0x0100,
  3314.     kMIDIImportSetSettingsSelect                    = 0x0101,
  3315.     kMovieExportNewGetDataAndPropertiesProcsSelect = 0x0100,
  3316.     kMovieExportDisposeGetDataAndPropertiesProcsSelect = 0x0101,
  3317.     kGraphicsImageImportSetSequenceEnabledSelect    = 0x0100,
  3318.     kGraphicsImageImportGetSequenceEnabledSelect    = 0x0101,
  3319.     kPreviewShowDataSelect                            = 0x0001,
  3320.     kPreviewMakePreviewSelect                        = 0x0002,
  3321.     kPreviewMakePreviewReferenceSelect                = 0x0003,
  3322.     kPreviewEventSelect                                = 0x0004,
  3323.     kDataCodecDecompressSelect                        = 0x0001,
  3324.     kDataCodecGetCompressBufferSizeSelect            = 0x0002,
  3325.     kDataCodecCompressSelect                        = 0x0003,
  3326.     kDataCodecBeginInterruptSafeSelect                = 0x0004,
  3327.     kDataCodecEndInterruptSafeSelect                = 0x0005,
  3328.     kDataCodecDecompressPartialSelect                = 0x0006,
  3329.     kDataCodecCompressPartialSelect                    = 0x0007,
  3330.     kDataHGetDataSelect                                = 0x0002,
  3331.     kDataHPutDataSelect                                = 0x0003,
  3332.     kDataHFlushDataSelect                            = 0x0004,
  3333.     kDataHOpenForWriteSelect                        = 0x0005,
  3334.     kDataHCloseForWriteSelect                        = 0x0006,
  3335.     kDataHOpenForReadSelect                            = 0x0008,
  3336.     kDataHCloseForReadSelect                        = 0x0009,
  3337.     kDataHSetDataRefSelect                            = 0x000A,
  3338.     kDataHGetDataRefSelect                            = 0x000B,
  3339.     kDataHCompareDataRefSelect                        = 0x000C,
  3340.     kDataHTaskSelect                                = 0x000D,
  3341.     kDataHScheduleDataSelect                        = 0x000E,
  3342.     kDataHFinishDataSelect                            = 0x000F,
  3343.     kDataHFlushCacheSelect                            = 0x0010,
  3344.     kDataHResolveDataRefSelect                        = 0x0011,
  3345.     kDataHGetFileSizeSelect                            = 0x0012,
  3346.     kDataHCanUseDataRefSelect                        = 0x0013,
  3347.     kDataHGetVolumeListSelect                        = 0x0014,
  3348.     kDataHWriteSelect                                = 0x0015,
  3349.     kDataHPreextendSelect                            = 0x0016,
  3350.     kDataHSetFileSizeSelect                            = 0x0017,
  3351.     kDataHGetFreeSpaceSelect                        = 0x0018,
  3352.     kDataHCreateFileSelect                            = 0x0019,
  3353.     kDataHGetPreferredBlockSizeSelect                = 0x001A,
  3354.     kDataHGetDeviceIndexSelect                        = 0x001B,
  3355.     kDataHIsStreamingDataHandlerSelect                = 0x001C,
  3356.     kDataHGetDataInBufferSelect                        = 0x001D,
  3357.     kDataHGetScheduleAheadTimeSelect                = 0x001E,
  3358.     kDataHSetCacheSizeLimitSelect                    = 0x001F,
  3359.     kDataHGetCacheSizeLimitSelect                    = 0x0020,
  3360.     kDataHGetMovieSelect                            = 0x0021,
  3361.     kDataHAddMovieSelect                            = 0x0022,
  3362.     kDataHUpdateMovieSelect                            = 0x0023,
  3363.     kDataHDoesBufferSelect                            = 0x0024,
  3364.     kDataHGetFileNameSelect                            = 0x0025,
  3365.     kDataHGetAvailableFileSizeSelect                = 0x0026,
  3366.     kDataHGetMacOSFileTypeSelect                    = 0x0027,
  3367.     kDataHGetMIMETypeSelect                            = 0x0028,
  3368.     kDataHSetDataRefWithAnchorSelect                = 0x0029,
  3369.     kDataHGetDataRefWithAnchorSelect                = 0x002A,
  3370.     kDataHSetMacOSFileTypeSelect                    = 0x002B,
  3371.     kDataHPlaybackHintsSelect                        = 0x0103,
  3372.     kVDGetMaxSrcRectSelect                            = 0x0001,
  3373.     kVDGetActiveSrcRectSelect                        = 0x0002,
  3374.     kVDSetDigitizerRectSelect                        = 0x0003,
  3375.     kVDGetDigitizerRectSelect                        = 0x0004,
  3376.     kVDGetVBlankRectSelect                            = 0x0005,
  3377.     kVDGetMaskPixMapSelect                            = 0x0006,
  3378.     kVDGetPlayThruDestinationSelect                    = 0x0008,
  3379.     kVDUseThisCLUTSelect                            = 0x0009,
  3380.     kVDSetInputGammaValueSelect                        = 0x000A,
  3381.     kVDGetInputGammaValueSelect                        = 0x000B,
  3382.     kVDSetBrightnessSelect                            = 0x000C,
  3383.     kVDGetBrightnessSelect                            = 0x000D,
  3384.     kVDSetContrastSelect                            = 0x000E,
  3385.     kVDSetHueSelect                                    = 0x000F,
  3386.     kVDSetSharpnessSelect                            = 0x0010,
  3387.     kVDSetSaturationSelect                            = 0x0011,
  3388.     kVDGetContrastSelect                            = 0x0012,
  3389.     kVDGetHueSelect                                    = 0x0013,
  3390.     kVDGetSharpnessSelect                            = 0x0014,
  3391.     kVDGetSaturationSelect                            = 0x0015,
  3392.     kVDGrabOneFrameSelect                            = 0x0016,
  3393.     kVDGetMaxAuxBufferSelect                        = 0x0017,
  3394.     kVDGetDigitizerInfoSelect                        = 0x0019,
  3395.     kVDGetCurrentFlagsSelect                        = 0x001A,
  3396.     kVDSetKeyColorSelect                            = 0x001B,
  3397.     kVDGetKeyColorSelect                            = 0x001C,
  3398.     kVDAddKeyColorSelect                            = 0x001D,
  3399.     kVDGetNextKeyColorSelect                        = 0x001E,
  3400.     kVDSetKeyColorRangeSelect                        = 0x001F,
  3401.     kVDGetKeyColorRangeSelect                        = 0x0020,
  3402.     kVDSetDigitizerUserInterruptSelect                = 0x0021,
  3403.     kVDSetInputColorSpaceModeSelect                    = 0x0022,
  3404.     kVDGetInputColorSpaceModeSelect                    = 0x0023,
  3405.     kVDSetClipStateSelect                            = 0x0024,
  3406.     kVDGetClipStateSelect                            = 0x0025,
  3407.     kVDSetClipRgnSelect                                = 0x0026,
  3408.     kVDClearClipRgnSelect                            = 0x0027,
  3409.     kVDGetCLUTInUseSelect                            = 0x0028,
  3410.     kVDSetPLLFilterTypeSelect                        = 0x0029,
  3411.     kVDGetPLLFilterTypeSelect                        = 0x002A,
  3412.     kVDGetMaskandValueSelect                        = 0x002B,
  3413.     kVDSetMasterBlendLevelSelect                    = 0x002C,
  3414.     kVDSetPlayThruDestinationSelect                    = 0x002D,
  3415.     kVDSetPlayThruOnOffSelect                        = 0x002E,
  3416.     kVDSetFieldPreferenceSelect                        = 0x002F,
  3417.     kVDGetFieldPreferenceSelect                        = 0x0030,
  3418.     kVDPreflightDestinationSelect                    = 0x0032,
  3419.     kVDPreflightGlobalRectSelect                    = 0x0033,
  3420.     kVDSetPlayThruGlobalRectSelect                    = 0x0034,
  3421.     kVDSetInputGammaRecordSelect                    = 0x0035,
  3422.     kVDGetInputGammaRecordSelect                    = 0x0036,
  3423.     kVDSetBlackLevelValueSelect                        = 0x0037,
  3424.     kVDGetBlackLevelValueSelect                        = 0x0038,
  3425.     kVDSetWhiteLevelValueSelect                        = 0x0039,
  3426.     kVDGetWhiteLevelValueSelect                        = 0x003A,
  3427.     kVDGetVideoDefaultsSelect                        = 0x003B,
  3428.     kVDGetNumberOfInputsSelect                        = 0x003C,
  3429.     kVDGetInputFormatSelect                            = 0x003D,
  3430.     kVDSetInputSelect                                = 0x003E,
  3431.     kVDGetInputSelect                                = 0x003F,
  3432.     kVDSetInputStandardSelect                        = 0x0040,
  3433.     kVDSetupBuffersSelect                            = 0x0041,
  3434.     kVDGrabOneFrameAsyncSelect                        = 0x0042,
  3435.     kVDDoneSelect                                    = 0x0043,
  3436.     kVDSetCompressionSelect                            = 0x0044,
  3437.     kVDCompressOneFrameAsyncSelect                    = 0x0045,
  3438.     kVDCompressDoneSelect                            = 0x0046,
  3439.     kVDReleaseCompressBufferSelect                    = 0x0047,
  3440.     kVDGetImageDescriptionSelect                    = 0x0048,
  3441.     kVDResetCompressSequenceSelect                    = 0x0049,
  3442.     kVDSetCompressionOnOffSelect                    = 0x004A,
  3443.     kVDGetCompressionTypesSelect                    = 0x004B,
  3444.     kVDSetTimeBaseSelect                            = 0x004C,
  3445.     kVDSetFrameRateSelect                            = 0x004D,
  3446.     kVDGetDataRateSelect                            = 0x004E,
  3447.     kVDGetSoundInputDriverSelect                    = 0x004F,
  3448.     kVDGetDMADepthsSelect                            = 0x0050,
  3449.     kVDGetPreferredTimeScaleSelect                    = 0x0051,
  3450.     kVDReleaseAsyncBuffersSelect                    = 0x0052,
  3451.     kVDSetDataRateSelect                            = 0x0054,
  3452.     kVDGetTimeCodeSelect                            = 0x0055,
  3453.     kVDUseSafeBuffersSelect                            = 0x0056,
  3454.     kVDGetSoundInputSourceSelect                    = 0x0057,
  3455.     kVDGetCompressionTimeSelect                        = 0x0058,
  3456.     kVDSetPreferredPacketSizeSelect                    = 0x0059,
  3457.     kVDSetPreferredImageDimensionsSelect            = 0x005A,
  3458.     kVDGetPreferredImageDimensionsSelect            = 0x005B,
  3459.     kVDGetInputNameSelect                            = 0x005C,
  3460.     kSGInitializeSelect                                = 0x0001,
  3461.     kSGSetDataOutputSelect                            = 0x0002,
  3462.     kSGGetDataOutputSelect                            = 0x0003,
  3463.     kSGSetGWorldSelect                                = 0x0004,
  3464.     kSGGetGWorldSelect                                = 0x0005,
  3465.     kSGNewChannelSelect                                = 0x0006,
  3466.     kSGDisposeChannelSelect                            = 0x0007,
  3467.     kSGStartPreviewSelect                            = 0x0010,
  3468.     kSGStartRecordSelect                            = 0x0011,
  3469.     kSGIdleSelect                                    = 0x0012,
  3470.     kSGStopSelect                                    = 0x0013,
  3471.     kSGPauseSelect                                    = 0x0014,
  3472.     kSGPrepareSelect                                = 0x0015,
  3473.     kSGReleaseSelect                                = 0x0016,
  3474.     kSGGetMovieSelect                                = 0x0017,
  3475.     kSGSetMaximumRecordTimeSelect                    = 0x0018,
  3476.     kSGGetMaximumRecordTimeSelect                    = 0x0019,
  3477.     kSGGetStorageSpaceRemainingSelect                = 0x001A,
  3478.     kSGGetTimeRemainingSelect                        = 0x001B,
  3479.     kSGGrabPictSelect                                = 0x001C,
  3480.     kSGGetLastMovieResIDSelect                        = 0x001D,
  3481.     kSGSetFlagsSelect                                = 0x001E,
  3482.     kSGGetFlagsSelect                                = 0x001F,
  3483.     kSGSetDataProcSelect                            = 0x0020,
  3484.     kSGNewChannelFromComponentSelect                = 0x0021,
  3485.     kSGDisposeDeviceListSelect                        = 0x0022,
  3486.     kSGAppendDeviceListToMenuSelect                    = 0x0023,
  3487.     kSGSetSettingsSelect                            = 0x0024,
  3488.     kSGGetSettingsSelect                            = 0x0025,
  3489.     kSGGetIndChannelSelect                            = 0x0026,
  3490.     kSGUpdateSelect                                    = 0x0027,
  3491.     kSGGetPauseSelect                                = 0x0028,
  3492.     kSGSettingsDialogSelect                            = 0x0029,
  3493.     kSGGetAlignmentProcSelect                        = 0x002A,
  3494.     kSGSetChannelSettingsSelect                        = 0x002B,
  3495.     kSGGetChannelSettingsSelect                        = 0x002C,
  3496.     kSGGetModeSelect                                = 0x002D,
  3497.     kSGSetDataRefSelect                                = 0x002E,
  3498.     kSGGetDataRefSelect                                = 0x002F,
  3499.     kSGNewOutputSelect                                = 0x0030,
  3500.     kSGDisposeOutputSelect                            = 0x0031,
  3501.     kSGSetOutputFlagsSelect                            = 0x0032,
  3502.     kSGSetChannelOutputSelect                        = 0x0033,
  3503.     kSGGetDataOutputStorageSpaceRemainingSelect        = 0x0034,
  3504.     kSGHandleUpdateEventSelect                        = 0x0035,
  3505.     kSGSetOutputNextOutputSelect                    = 0x0036,
  3506.     kSGGetOutputNextOutputSelect                    = 0x0037,
  3507.     kSGSetOutputMaximumOffsetSelect                    = 0x0038,
  3508.     kSGGetOutputMaximumOffsetSelect                    = 0x0039,
  3509.     kSGGetOutputDataReferenceSelect                    = 0x003A,
  3510.     kSGWriteExtendedMovieDataSelect                    = 0x003B,
  3511.     kSGWriteMovieDataSelect                            = 0x0100,
  3512.     kSGAddFrameReferenceSelect                        = 0x0101,
  3513.     kSGGetNextFrameReferenceSelect                    = 0x0102,
  3514.     kSGGetTimeBaseSelect                            = 0x0103,
  3515.     kSGSortDeviceListSelect                            = 0x0104,
  3516.     kSGAddMovieDataSelect                            = 0x0105,
  3517.     kSGChangedSourceSelect                            = 0x0106,
  3518.     kSGAddExtendedFrameReferenceSelect                = 0x0107,
  3519.     kSGGetNextExtendedFrameReferenceSelect            = 0x0108,
  3520.     kSGAddExtendedMovieDataSelect                    = 0x0109,
  3521.     kSGAddOutputDataRefToMediaSelect                = 0x010A,
  3522.     kSGSetChannelUsageSelect                        = 0x0080,
  3523.     kSGGetChannelUsageSelect                        = 0x0081,
  3524.     kSGSetChannelBoundsSelect                        = 0x0082,
  3525.     kSGGetChannelBoundsSelect                        = 0x0083,
  3526.     kSGSetChannelVolumeSelect                        = 0x0084,
  3527.     kSGGetChannelVolumeSelect                        = 0x0085,
  3528.     kSGGetChannelInfoSelect                            = 0x0086,
  3529.     kSGSetChannelPlayFlagsSelect                    = 0x0087,
  3530.     kSGGetChannelPlayFlagsSelect                    = 0x0088,
  3531.     kSGSetChannelMaxFramesSelect                    = 0x0089,
  3532.     kSGGetChannelMaxFramesSelect                    = 0x008A,
  3533.     kSGSetChannelRefConSelect                        = 0x008B,
  3534.     kSGSetChannelClipSelect                            = 0x008C,
  3535.     kSGGetChannelClipSelect                            = 0x008D,
  3536.     kSGGetChannelSampleDescriptionSelect            = 0x008E,
  3537.     kSGGetChannelDeviceListSelect                    = 0x008F,
  3538.     kSGSetChannelDeviceSelect                        = 0x0090,
  3539.     kSGSetChannelMatrixSelect                        = 0x0091,
  3540.     kSGGetChannelMatrixSelect                        = 0x0092,
  3541.     kSGGetChannelTimeScaleSelect                    = 0x0093,
  3542.     kSGChannelPutPictureSelect                        = 0x0094,
  3543.     kSGChannelSetRequestedDataRateSelect            = 0x0095,
  3544.     kSGChannelGetRequestedDataRateSelect            = 0x0096,
  3545.     kSGChannelSetDataSourceNameSelect                = 0x0097,
  3546.     kSGChannelGetDataSourceNameSelect                = 0x0098,
  3547.     kSGInitChannelSelect                            = 0x0180,
  3548.     kSGWriteSamplesSelect                            = 0x0181,
  3549.     kSGGetDataRateSelect                            = 0x0182,
  3550.     kSGAlignChannelRectSelect                        = 0x0183,
  3551.     kSGPanelGetDitlSelect                            = 0x0200,
  3552.     kSGPanelGetTitleSelect                            = 0x0201,
  3553.     kSGPanelCanRunSelect                            = 0x0202,
  3554.     kSGPanelInstallSelect                            = 0x0203,
  3555.     kSGPanelEventSelect                                = 0x0204,
  3556.     kSGPanelItemSelect                                = 0x0205,
  3557.     kSGPanelRemoveSelect                            = 0x0206,
  3558.     kSGPanelSetGrabberSelect                        = 0x0207,
  3559.     kSGPanelSetResFileSelect                        = 0x0208,
  3560.     kSGPanelGetSettingsSelect                        = 0x0209,
  3561.     kSGPanelSetSettingsSelect                        = 0x020A,
  3562.     kSGPanelValidateInputSelect                        = 0x020B,
  3563.     kSGPanelSetEventFilterSelect                    = 0x020C,
  3564.     kSGGetSrcVideoBoundsSelect                        = 0x0100,
  3565.     kSGSetVideoRectSelect                            = 0x0101,
  3566.     kSGGetVideoRectSelect                            = 0x0102,
  3567.     kSGGetVideoCompressorTypeSelect                    = 0x0103,
  3568.     kSGSetVideoCompressorTypeSelect                    = 0x0104,
  3569.     kSGSetVideoCompressorSelect                        = 0x0105,
  3570.     kSGGetVideoCompressorSelect                        = 0x0106,
  3571.     kSGGetVideoDigitizerComponentSelect                = 0x0107,
  3572.     kSGSetVideoDigitizerComponentSelect                = 0x0108,
  3573.     kSGVideoDigitizerChangedSelect                    = 0x0109,
  3574.     kSGSetVideoBottlenecksSelect                    = 0x010A,
  3575.     kSGGetVideoBottlenecksSelect                    = 0x010B,
  3576.     kSGGrabFrameSelect                                = 0x010C,
  3577.     kSGGrabFrameCompleteSelect                        = 0x010D,
  3578.     kSGDisplayFrameSelect                            = 0x010E,
  3579.     kSGCompressFrameSelect                            = 0x010F,
  3580.     kSGCompressFrameCompleteSelect                    = 0x0110,
  3581.     kSGAddFrameSelect                                = 0x0111,
  3582.     kSGTransferFrameForCompressSelect                = 0x0112,
  3583.     kSGSetCompressBufferSelect                        = 0x0113,
  3584.     kSGGetCompressBufferSelect                        = 0x0114,
  3585.     kSGGetBufferInfoSelect                            = 0x0115,
  3586.     kSGSetUseScreenBufferSelect                        = 0x0116,
  3587.     kSGGetUseScreenBufferSelect                        = 0x0117,
  3588.     kSGGrabCompressCompleteSelect                    = 0x0118,
  3589.     kSGDisplayCompressSelect                        = 0x0119,
  3590.     kSGSetFrameRateSelect                            = 0x011A,
  3591.     kSGGetFrameRateSelect                            = 0x011B,
  3592.     kSGSetPreferredPacketSizeSelect                    = 0x0121,
  3593.     kSGGetPreferredPacketSizeSelect                    = 0x0122,
  3594.     kSGSetUserVideoCompressorListSelect                = 0x0123,
  3595.     kSGGetUserVideoCompressorListSelect                = 0x0124,
  3596.     kSGSetSoundInputDriverSelect                    = 0x0100,
  3597.     kSGGetSoundInputDriverSelect                    = 0x0101,
  3598.     kSGSoundInputDriverChangedSelect                = 0x0102,
  3599.     kSGSetSoundRecordChunkSizeSelect                = 0x0103,
  3600.     kSGGetSoundRecordChunkSizeSelect                = 0x0104,
  3601.     kSGSetSoundInputRateSelect                        = 0x0105,
  3602.     kSGGetSoundInputRateSelect                        = 0x0106,
  3603.     kSGSetSoundInputParametersSelect                = 0x0107,
  3604.     kSGGetSoundInputParametersSelect                = 0x0108,
  3605.     kSGSetAdditionalSoundRatesSelect                = 0x0109,
  3606.     kSGGetAdditionalSoundRatesSelect                = 0x010A,
  3607.     kSGSetFontNameSelect                            = 0x0100,
  3608.     kSGSetFontSizeSelect                            = 0x0101,
  3609.     kSGSetTextForeColorSelect                        = 0x0102,
  3610.     kSGSetTextBackColorSelect                        = 0x0103,
  3611.     kSGSetJustificationSelect                        = 0x0104,
  3612.     kSGGetTextReturnToSpaceValueSelect                = 0x0105,
  3613.     kSGSetTextReturnToSpaceValueSelect                = 0x0106,
  3614.     kSGGetInstrumentSelect                            = 0x0100,
  3615.     kSGSetInstrumentSelect                            = 0x0101,
  3616.     kQTVideoOutputGetDisplayModeListSelect            = 0x0001,
  3617.     kQTVideoOutputGetCurrentClientNameSelect        = 0x0002,
  3618.     kQTVideoOutputSetClientNameSelect                = 0x0003,
  3619.     kQTVideoOutputGetClientNameSelect                = 0x0004,
  3620.     kQTVideoOutputBeginSelect                        = 0x0005,
  3621.     kQTVideoOutputEndSelect                            = 0x0006,
  3622.     kQTVideoOutputSetDisplayModeSelect                = 0x0007,
  3623.     kQTVideoOutputGetDisplayModeSelect                = 0x0008,
  3624.     kQTVideoOutputCustomConfigureDisplaySelect        = 0x0009,
  3625.     kQTVideoOutputSaveStateSelect                    = 0x000A,
  3626.     kQTVideoOutputRestoreStateSelect                = 0x000B,
  3627.     kQTVideoOutputGetGWorldSelect                    = 0x000C,
  3628.     kQTVideoOutputGetGWorldParametersSelect            = 0x000D,
  3629.     kQTVideoOutputGetIndSoundOutputSelect            = 0x000E,
  3630.     kQTVideoOutputGetClockSelect                    = 0x000F,
  3631.     kQTVideoOutputSetEchoPortSelect                    = 0x0010
  3632. };
  3633.  
  3634.  
  3635. #if PRAGMA_STRUCT_ALIGN
  3636.     #pragma options align=reset
  3637. #elif PRAGMA_STRUCT_PACKPUSH
  3638.     #pragma pack(pop)
  3639. #elif PRAGMA_STRUCT_PACK
  3640.     #pragma pack()
  3641. #endif
  3642.  
  3643. #ifdef PRAGMA_IMPORT_OFF
  3644. #pragma import off
  3645. #elif PRAGMA_IMPORT
  3646. #pragma import reset
  3647. #endif
  3648.  
  3649. #ifdef __cplusplus
  3650. }
  3651. #endif
  3652.  
  3653. #endif /* __QUICKTIMECOMPONENTS__ */
  3654.  
  3655.